Welcome! Log In Create A New Profile

Advanced

apache to nginx rewrite rule.

August 26, 2010 04:37PM
hello, what is the way to convert this apache vhost directive to nginx?
[code]
<VirtualHost *:80>
ServerName example.com
ServerAlias vhost1.example.com
ServerAlias vhost2.example.com
RewriteEngine On
RewriteRule ^/(.*) http://localhost:8080/$1 [P]
</VirtualHost>
[/code]

also is there a way to read a list of ServerAlias'es dynamically, for example from a python list, ['vhost1.example.com', 'vhost2.example.com'...]

thanks

norman
Subject Author Posted

apache to nginx rewrite rule.

khine August 26, 2010 04:37PM

Re: apache to nginx rewrite rule.

Kirill A. Korinskiy August 26, 2010 05:56PM

Re: apache to nginx rewrite rule.

khine August 27, 2010 01:27AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready