Welcome! Log In Create A New Profile


Basic question...

May 22, 2010 01:56AM

I'm new to Nginx and I have a basic problem. In short my "index.htm" isn't dynamically loading on any sub-directories other than root.

For example, "http://www.mydomain.com/" will load the index.htm page just fine. However, "http://www.mydomain.com/subdirectory/" will not load
the associated index.htm. I have to manually specify ".../index.htm" within the URL for the page to load. This can't be right/normal.

My nginx.conf has this within the server declaration:

location / {
root /var/www/localhost/htdocs;
index index.html index.htm;
allow all;

location ~* ^.+\.(jpg|jpeg|gif)$ {
root /var/www/localhost/htdocs;
access_log off;
expires 30d;

What am I missing? This has become a show-stopper for my project so your help is *very* much appreciated!

Thank you!

- Gyan
Subject Author Posted

Basic question...

gyan May 22, 2010 01:56AM

Re: Basic question...

Igor Sysoev May 22, 2010 02:08AM

Re: Basic question...

Ray May 22, 2010 01:34PM

Re: Basic question...

gyan May 22, 2010 02:02PM

Re: Basic question...

gyan May 22, 2010 02:00PM

Re: Basic question...

gyan May 22, 2010 03:18PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 265
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