ubuntu – Nginx sites-enabled leads me to default directory

I am trying to direct virtualhost domain http://czy.local to /var/www/czy/public directory.

No matter how much I try, it goes to /var/www/html default directory, no idea why.

I have restarted nginx several times, also restarted the ubuntu.

/etc/nginx/sites-enabled/default looks like this:

server {
    listen 80 default_server;
    listen (::):80 default_server ipv6only=on;

    server_name czy.local

    root /var/www/czy/public;
    index index.php index.html index.htm;

    location ~ .php$ {
        try_files $uri $uri/ /index.php?$query_string;
        fastcgi_split_path_info ^(.+.php)(/.+)$;
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}

/etc/hosts file:

127.0.0.1   localhost
127.0.1.1   GT70

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

127.0.0.1 czy.local

Using IF AND operator in MS Excel leads to argument error

I have been trying to make this formula work by using IF and AND operators in excel. However I keep getting the too many argument error. I have check for the open and closed braces. Can someone correct the formula if there is anything wrong.

=IF(AND(F2>=190, F2<=194),30,0,IF(AND(F2>=196, F2<=200),30,0,IF(AND(F2>=185, F2<=189),20,0,IF(AND(F2>=201, F2<=205),20,0,IF(AND(F2>=175, F2<=184),10,0,IF(AND(F2>=206, F2<=215),10,0, IF(EXACT(F2,Sheet2!$A4),50,0)))))))

dnd 5e – The whirlpool application of the Control Water spell leads to several questions regarding creatures caught in it

Are creatures or objects in the water and within 25′ of the vortex automatically pulled 10′ toward it?

Yes, when the whirlpool forms.

Do they continue to be pulled 10′ further toward the center of the vortex every round they are in it?

You’ve pointed out that control water allows the caster to spend an action to “repeat the same effect or choose a different one” — so the caster should be able to spend an action on their turn to re-form the whirlpool and pull creatures ten feet toward it again. This seems like not the best use of an action but it appears to be a valid use of the spell.

If the caster does not choose to use their action in this way, then the pull does not repeat.

Is a creature or object caught in the vortex also pulled down toward the bottom?

It only pulls “toward” the vortex. We don’t have a clear definition of what it means to be pulled “toward” something that is larger than five feet, so your DM will have to fill in the details of how this works. This DM would rule that you stay on the surface of the water, but the surface of the water is sloped downward towards the center, so if you reach the center then you are still on the surface of the water but you are twenty-five feet lower than the normal water level.

On a failed save, are they caught for the entire duration of the spell, with no more chance at saves, or until they can swim free of it?

Every time they start their turn in the vortex, they make a new save, and the result of the new save determines whether they’re “caught” during that round. The fact that they’re “caught” seems to only affect whether they get disadvantage on a check to swim away.

This is a bit confusing because failing a save causes a creature to be “caught in the vortex until the spell ends”, but then making a save on the next turn overrides that by saying that the creature “isn’t caught in the vortex”.

On a failed save, does a creature continue to take 2d8 bludgeoning damage every round they are in the vortex?

The creature makes a new save every round they are in the vortex, and takes full damage or half damage depending on the result of that save.

Can the whirlpool be cast so that it is completely underwater?

The rules don’t technically say that you can’t do this, but your DM might veto it.

Also, can the whirlpool be cast ‘upside down’ so the widest part is at the bottom?

No. The rules say “the widest part is at the top”.

dnd 5e – The whirpool application of the Control Water spell leads to several questions regarding creatures caught in it

Are creatures or objects in the water and within 25′ of the vortex automatically pulled 10′ toward it?

Yes, once only, when the spell is first cast.

Do they continue to be pulled 10′ further toward the center of the vortex every round they are in it?

No.

Is a creature or object caught in the vortex also pulled down toward the bottom?

No. The pulling only happens once and it only pulls “toward” the vortex.

On a failed save, are they caught for the entire duration of the spell, with no more chance at saves, or until they can swim free of it?

Every time they start their turn in the vortex, they make a new save, and the result of the new save determines whether they’re “caught” during that round. The fact that they’re “caught” seems to only affect whether they get disadvantage on a check to swim away.

This is a bit confusing because failing a save causes a creature to be “caught in the vortex until the spell ends”, but then making a save on the next turn overrides that by saying that the creature “isn’t caught in the vortex”.

On a failed save, does a creature continue to take 2d8 bludgeoning damage every round they are in the vortex?

The creature makes a new save every round they are in the vortex, and takes full damage or half damage depending on the result of that save.

Can the whirlpool be cast so that it is completely underwater?

The rules don’t technically say that you can’t do this, but your DM might veto it.

Also, can the whirlpool be cast ‘upside down’ so the widest part is at the bottom?

No. The rules say “the widest part is at the top”.

Redirect based on Cookie leads to Error after WooCommerce payment

I want to make sure every user does only get access to my webshop after visiting the home page.
Therefore, the home page sets a cookie

setcookie('mycookie', $value, 0, "/", "mywebsite.com", false);

My child-theme’s functions.php includes a hook to template_redirect to make sure all sites (except the home page) will check for the cookie.
If it is not set, it will redirect the user to the home page.

add_action('template_redirect', 'check_cookie', 10);
function check_cookie(){

    // Ignore home page
    if ( !is_front_page() ) {

            if (!is_admin()){
                    //Check to see if our cookie is set; If not, redirect to home page

                    if ( !isset($_COOKIE("mycookie")) ) {
                    
                            //Redirect
                            wp_redirect( get_site_url() ); 
                            exit;
                    
                    }
            }
            
   }
   
}

This basically works – every time the user tries to access the shop directly, he will be redirected to the home page.

The error happens after an order has been made. I tested this via PayPal checkout. As soon as the payment has been made and the user clicks the button to return to the shop to see the thank you page, he is redirected to the front page.

I checked for my cookie in chrome and it does exist, but still I get redirected to the home page.

Since I’m also not sure if my approach is efficient I would be thankful for your opinion on how to do better.

I will do for you b2b lead generation, email list building and web research for $5

I will do for you b2b lead generation, email list building and web research

I have pretty good experience in lead generation. I can help you to build a list of fresh and targeted prospects based on your targeted niche.

1st Package:

50 leads

Price: $5

Delivery in : 2 Day’s

2nd Package:

300 Leads + 50 Cold email sends

Price: $45

Delivery in :5 Day’s

3rd Package:

500 leads + 150 Cold email sends

Price: $85

Delivery in : 7 Day’s

I am offering a 100% customer satisfaction guarantee.I’ll work with you until you’re satisfied! Shoot me a message and i’ll get back to you as soon as possible!

.

How to Increase B2B leads?

Hi,

We are small IT business, work on Salesforce to provide customization, implementation, development solutions across the globe.

I want some expert suggestions regarding B2B leads because we are not getting continuous leads for our business.

I will provide 10 000 Verified active email lists for $70

I will provide 10 000 Verified active email lists

My email list is verified and active, i have gathered these from my website which is an affiliate marketing site..most of them have been engaging to my business offers and are likely to buy to marketing and business services and softwares

.

ubuntu ejecting one hd from dock leads to ejecting both partitions of HDD

I am able to mount any HDD partition (secondary storage) one by one but when i eject any one it ejects all mounted partitions. Both the partitions are on the same HDD. Is this a feature or a bug?

url rewriting – “View post” leads to odd URL

On one of my sites, pressing “View post” from the back-end creates an odd URL, always taking the user to the homepage.

The correct URL shows when you mouse-over the link – for example –

www.trunk.com/branch/leaf

But when clicked it leads to:

www.trunk.com/?q=branch%2Fleaf%2F

This happens when all the plug-ins are deactivated and with any theme I switch to.

Googling for an explanation is a dead loss. Has anyone experienced this before, or can anyone suggest what is happening? Something in wp-config or htaccess? Many thanks.