LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-26-2011, 05:30 AM   #1
angryrabbit
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 http://pastebin.com:


/etc/nginx/nginx.conf => http://pastebin.com/v64vCLzK
/etc/httpd/conf/httpd.conf => http://pastebin.com/GsPZsGtC
/etc/httpd/conf/ips.conf => http://pastebin.com/gf0WXiW9
/etc/httpd/conf/extra/httpd-vhosts.conf => http://pastebin.com/X0NRQSLF

/etc/httpd/conf/extra/directadmin-vhosts.conf => http://pastebin.com/0XJHCRJH


and one example form included config in directadmin-vhosts.conf => http://pastebin.com/69AXPGAV


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

Rep: Reputation: 17
Alright..
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:
http://pastebin.com/mjNwGJ7k

Let's know if that solves your issue..

- Regards..
 
  


Reply



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 05:46 PM
Directory index forbidden by rule: /var/www/html/ danimaldaisy Linux - Networking 6 02-11-2008 01:32 AM
adding index.html to /var/www/html not working dannyboy990 Linux - Newbie 1 09-30-2007 08:43 AM
index.html is not noticed in /var/www/html xviddivxoggmp3 Red Hat 1 04-23-2006 06:30 PM
apache 403 for dir in /var/www/html/ m3rajk Linux - Networking 7 10-11-2005 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:37 AM.

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