LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Nginx + Apache. Always get /var/www/html/index.html (https://www.linuxquestions.org/questions/linux-server-73/nginx-apache-always-get-var-www-html-index-html-915614/)

angryrabbit 11-26-2011 05:30 AM

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 :confused:. Please help me !

WhisperiN 11-27-2011 04:56 PM

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..


All times are GMT -5. The time now is 01:53 AM.