Apache to nginx
francis at daoine.org
Mon Feb 13 18:34:09 UTC 2017
On Mon, Feb 13, 2017 at 10:23:44AM +0100, Daniel wrote:
> i create a vhost confuguration for a vhost but i ma not able to access /vakanz for exmaple.
> I got a 404 error on the access logs.
> I Tried already with rewrite rules and i also tried with locations, no matter what i do, nothing works.
> Anyone has an idea what can i do?
> rewrite ^/(vakanz|vrij|ajax|boek|buchen)$ /var/www/vhosts/reisen/fe/index.php last;
There is "filename space" (/var/www/whatever) and "url space"
"rewrite" changes from "url space" to "url space"; it does not involve
"filename space" at all.
I think that most of your "rewrites" will probably lead to 404s, because
you do not have a file to match url that start with /var/www.
If you start again with just one thought -- what do you want nginx to
do when you request the url /vakanz/ -- it may make it clearer what the
config you want to have in nginx.conf is.
Good luck with it,
Francis Daly francis at daoine.org
More information about the nginx