HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   When trying to install Nginx or Varnish (http://www.howtoforge.com/forums/showthread.php?t=60195)

nox 11th January 2013 20:34

When trying to install Nginx or Varnish
 
Regardless which I use (Nginx or Varnish, I use one or the other, never both), running them as a proxy (port 80) with Apache (port 8008, opened in iptables and all vhosts changed). All config files have Apache2 as backend, but I get "404, Not Found" errors.

Any way to fix this?

Thank you in advance!

nox 11th January 2013 20:44

To add:

Error log reads:

script '/var/www/x.php' not found or unable to stat, referer: http://www.domain.com/x.php

Or

File does not exist: /var/www/admin, referer: http://domain.com/admin

So it is a path issue. In vhost for x domain, it contains the full path.

Code:

<Directory /var/www/x.com>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost 1.1.1.1:8008>
      DocumentRoot /var/www/x.com/web

Seems like the path in the error is wrong. Stopping short... example: /var/www/[looking here] instead of /var/www/x.com/web/[looking here]. How do I go about fixing this?

Thanks!


All times are GMT +2. The time now is 14:19.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.