HEX
Server: nginx/1.18.0
System: Linux srv01 5.15.0-171-generic #181-Ubuntu SMP Fri Feb 6 22:44:50 UTC 2026 x86_64
User: RaviMohan (1026)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //etc/nginx/sites-enabled/vacationstaymexico.com
# find replace following placeholders
# vacationstaymexico.com "seeus.link";
# Do not use trailing / below
# /home/gobc/vacationstaymexico.com "/home/AkaalCreatives/seeus.link";
# /var/run/php/php8.2-fpm-gobc.sock "/var/run/php/php8.2-fpm-AkaalCreatives.sock";
#
# IMPORTANT
# Update Line 119. to excape . in domain
#

map $http_accept $webp_suffix {
  default "";
  "~*webp" ".webp";
}


server {

    listen [::]:443 ssl http2;
    listen 443 ssl http2;
    
    root /home/gobc/vacationstaymexico.com/web;
    index index.php index.html;

    server_name www.vacationstaymexico.com;

    access_log /home/gobc/vacationstaymexico.com/logs/access.log;
    error_log /home/gobc/vacationstaymexico.com/logs/error.log info;

    client_max_body_size 128M;
    
    location ~* ^.+\.(png|jpe?g|gif)$ {
        add_header Vary Accept;
        try_files $uri$webp_suffix $uri =404;
    }

# See wp super cache section
#    location / {
#        try_files $uri $uri/ /index.php$is_args$args;
#    }

    rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last;
    rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last;
    rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last;
    rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last;


    # Global restrictions configuration file.
    # Designed to be included in any server {} block.
    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }
 
    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }
 
    # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
    # Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
    location ~ /\. {
        deny all; 
    }
 
    # Deny access to any files with a .php extension in the uploads directory
    # Works in sub-directory installs and also in multisite network
    # Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
    location ~* /(?:uploads|files)/.*\.php$ {
        deny all;
    }

    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
        expires max;
        log_not_found off;
    }


# gzip
        gzip on;
        gzip_disable "msie6";
        gzip_vary on;
        gzip_proxied any;
        gzip_comp_level 6;
        gzip_buffers 16 8k;
        gzip_http_version 1.1;
        gzip_types text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword application/vnd.ms-fontobject application/x-msdownload image/x-icon image/webp application/json application/vnd.ms-access application/vnd.ms-project application/x-font-otf application/vnd.ms-opentype application/vnd.oasis.opendocument.database application/vnd.oasis.opendocument.chart application/vnd.oasis.opendocument.formula application/vnd.oasis.opendocument.graphics application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/ogg application/pdf application/vnd.ms-powerpoint application/x-shockwave-flash image/tiff application/x-font-ttf audio/wav application/vnd.ms-write application/font-woff application/font-woff2 application/vnd.ms-excel application/xml application/xml+rss;

# WP Super Cache
		set $cache_uri $request_uri;

# POST requests should always go to PHP
        if ($request_method = POST) {
            set $cache_uri 'null cache';
        }

# urls with a query string should always go to PHP
        if ($query_string != "") {
            set $cache_uri 'null cache';
        }
# Request from WordPress should always go to PHP, otherwise preload will not work
# . in domain must be escaped with \.
		if ($http_user_agent ~* ^WordPress.*\ vacationstaymexico\.com$ ) {
            set $cache_uri 'null cache';
		}
# Don't cache uris containing the following segments
        if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php
                              |wp-.*.php|/feed/|index.php|wp-comments-popup.php
                              |wp-links-opml.php|wp-locations.php |sitemap(_index)?.xml
                              |[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
            set $cache_uri 'null cache';
        }

# Use this block only when wp comments are allowed.
# Don't use the cache for logged-in users or recent commenters
#        if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+
#                             |wp-postpass|wordpress_logged_in") {
#            set $cache_uri 'null cache';
#        }

# Don't use the cache for logged-in users
		if ($http_cookie ~* "wordpress_logged_in") {
            set $cache_uri 'null cache';
        }

# Set the cache file (we assume that this server block serves only https requests!)
        set $cachefile "/wp-content/cache/supercache/$host$cache_uri/index-https.html";

# Try in the following order: (1) cachefile, (2) normal url, (3) php
        location / {
            try_files $cachefile $uri $uri/ /index.php;
        }

location ~ \.php$ {
            try_files $uri =404;
            fastcgi_pass unix:/var/run/php/php8.2-fpm-gobc.sock;
            fastcgi_param GATEWAY_INTERFACE CGI/1.1;
            fastcgi_param SERVER_SOFTWARE nginx;
            fastcgi_param QUERY_STRING $query_string;
            fastcgi_param REQUEST_METHOD $request_method;
            fastcgi_param CONTENT_TYPE $content_type;
            fastcgi_param CONTENT_LENGTH $content_length;
            fastcgi_param SCRIPT_FILENAME /home/gobc/vacationstaymexico.com/web$fastcgi_script_name;
            fastcgi_param SCRIPT_NAME $fastcgi_script_name;
            fastcgi_param REQUEST_URI $request_uri;
            fastcgi_param DOCUMENT_URI $document_uri;
            fastcgi_param DOCUMENT_ROOT /home/gobc/vacationstaymexico.com/web;
            fastcgi_param SERVER_PROTOCOL $server_protocol;
            fastcgi_param REMOTE_ADDR $remote_addr;
            fastcgi_param REMOTE_PORT $remote_port;
            fastcgi_param SERVER_ADDR $server_addr;
            fastcgi_param SERVER_PORT $server_port;
            fastcgi_param SERVER_NAME $server_name;
            fastcgi_param HTTPS $https;
        }

# Cloudflare SSL
    ssl_certificate         /home/gobc/vacationstaymexico.com/.ssl/fullchain.pem;
    ssl_certificate_key     /home/gobc/vacationstaymexico.com/.ssl/privkey.pem;
    ssl_dhparam             /home/gobc/vacationstaymexico.com/.ssl/dhparam.pem;

    ssl_session_timeout 60m;
    ssl_prefer_server_ciphers on;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';


}

server {
    listen [::]:443 ssl http2;
    listen 443 ssl http2;

    server_name vacationstaymexico.com;

    # Cloudflare SSL
    ssl_certificate         /home/gobc/vacationstaymexico.com/.ssl/fullchain.pem;
    ssl_certificate_key     /home/gobc/vacationstaymexico.com/.ssl/privkey.pem;
    ssl_dhparam             /home/gobc/vacationstaymexico.com/.ssl/dhparam.pem;

    ssl_session_timeout 60m;
    ssl_prefer_server_ciphers on;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';



    return 301 https://www.vacationstaymexico.com$request_uri;
}

server {
    listen [::]:80;
    listen 80;

    server_name vacationstaymexico.com;

    return 301 https://www.vacationstaymexico.com$request_uri;

}

server {
    listen [::]:80;
    listen 80;

    server_name www.vacationstaymexico.com;

    return 301 https://www.vacationstaymexico.com$request_uri;

}