Welcome! Log In Create A New Profile

Advanced

nginx rewrite with ISPConfig

Posted by Ph1L 
nginx rewrite with ISPConfig
April 18, 2013 03:19AM
I've searched for 1+ hour now.
I have a webserver, with ISPConfig 3 and using nginx.

It's a Joomla website, where it used .htaccess before, which afaik nginx doesn't support.

Therefor, SEF (mod_rewrite) is done with the following:

# Support Clean (aka Search Engine Friendly) URLs</tt>
location / {
try_files $uri $uri/ /index.php?q=$request_uri;
}

Now the tricky part.
Before with .htaccess, a rewrite was setup with:
domain.tld to www.domain.tld/path
The path is an menu alias in Joomla, and worked perfectly with .htaccess.

How can this be resolved with nginx?

If I use ISPConfig, I get 404 errors and the URL looks totally wrong.
So therefor, if possible, I'll like howto setup this in the nginx conf file.

Thanks,
Re: nginx rewrite with ISPConfig
August 03, 2014 06:10AM
try this.
===
location / {
try_files $uri $uri/ /index.php?$args;
}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 238
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