Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-26-2011, 06:30 AM   #1
LQ Newbie
Registered: Nov 2011
Location: Ukraine, Lviv
Distribution: Gentoo Linux
Posts: 1

Rep: Reputation: Disabled
Exclamation Nginx + Apache. Always get /var/www/html/index.html

Hi guys. I can't understand why i always get index.html from default folder /var/www/html/index.html. Nginx works like a proxy, and i have a lot of VirtualHosts in apache's config. Also my server supports directadmin for realy cool guys . And all this things works on CentOS 5.

There are my config files, posted on

/etc/nginx/nginx.conf =>
/etc/httpd/conf/httpd.conf =>
/etc/httpd/conf/ips.conf =>
/etc/httpd/conf/extra/httpd-vhosts.conf =>

/etc/httpd/conf/extra/directadmin-vhosts.conf =>

and one example form included config in directadmin-vhosts.conf =>

I can't find solution for second day, and i thinck that i'm going crazy . Please help me !
Old 11-27-2011, 05:56 PM   #2
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Rep: Reputation: 17
So, looking at your NginX Config file, I understand that you want it to server only gif,jpg,jpeg,png,bmp and swf files.

Please, try using NginX config file that I've modified for you on the link below:

Let's know if that solves your issue..

- Regards..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache2 folder 'var/www' is not shareable; can not edit the index.html file mcanallyd Linux - Newbie 2 06-18-2009 06:46 PM
Directory index forbidden by rule: /var/www/html/ danimaldaisy Linux - Networking 6 02-11-2008 02:32 AM
adding index.html to /var/www/html not working dannyboy990 Linux - Newbie 1 09-30-2007 09:43 AM
index.html is not noticed in /var/www/html xviddivxoggmp3 Red Hat 1 04-23-2006 07:30 PM
apache 403 for dir in /var/www/html/ m3rajk Linux - Networking 7 10-11-2005 02:31 PM

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration