Welcome! Log In Create A New Profile

Advanced

Re: Odd behavior

Ken Wright
October 09, 2019 07:54PM
On 10/9/19 4:27 AM, Francis Daly wrote:
> On Wed, Oct 09, 2019 at 01:52:11AM -0400, Ken Wright wrote:
>
> When I enter my domain name in Firefox, I get a 404 status.
> Do your nginx logs show this request getting to nginx?
>
> If not, there is something outside of nginx that needs changing first.
I'm sure I'm getting to nginx; the 404 message shows nginx as well.
> Perhaps if you test using "curl", that will eliminate any possibility of
> browser-side caching interfering in your tests.
I tried using curl on both index.html and index.nginx-debian.html and
got identical results for both.
>
> If you can show a (small) config that someone else can use to see the
> issue, perhaps it will be clear what needs to be changed.

Okay, here's the default config:


# Default server configuration
#
upstream php-handler {
    server unix:/run/php/php7.2-fpm.sock;
}

server {
    if ($host = www.koalatyworks.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    if ($host = koalatyworks.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    listen 80;
    listen [::]:80;
        server_name koalatyworks.com www.koalatyworks.com;

    # SSL configuration
    #
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
        server_name koalatyworks.com www.koalatyworks.com;
    #

    root /var/www/html;

    # Add index.php to the list if you are using PHP
    index index.html index.htm index.nginx-debian.html index.php;

    return 301 https://$host$request_uri;
        ssl_certificate
/etc/letsencrypt/live/koalatyworks.com/fullchain.pem; # managed by Certbot
        ssl_certificate_key
/etc/letsencrypt/live/koalatyworks.com/privkey.pem; # managed by Certbot


    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to displaying a 404.
        try_files $uri $uri/ =404;
    }
}


I hope that helps!

Ken

--
Registered Linux user #483005

If you ever think international relations make sense, remember this:
because a Serb shot an Austrian in Bosnia, Germany invaded Belgium.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Odd behavior

Ken Wright October 09, 2019 01:54AM

Re: Odd behavior

pbooth October 09, 2019 03:40AM

Re: Odd behavior

Francis Daly October 09, 2019 04:28AM

Re: Odd behavior

Ken Wright October 09, 2019 07:54PM

Re: Odd behavior

Francis Daly October 10, 2019 04:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 194
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready