Welcome! Log In Create A New Profile

Advanced

Re: Apache to nginx

Francis Daly
February 13, 2017 01:52PM
On Mon, Feb 13, 2017 at 10:23:44AM +0100, Daniel wrote:

Hi there,

> 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"
(/vakanz/whatever).

"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,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Apache to nginx

Daniel February 13, 2017 04:24AM

Re: Apache to nginx

Francis Daly February 13, 2017 01:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 300
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready