Welcome! Log In Create A New Profile


Nginx equivalent of Apache's ServerAlias

Posted by grungy 
Nginx equivalent of Apache's ServerAlias
May 18, 2010 05:15AM
What's the Nginx equivalent of Apache's ServerAlias in this example:

<VirtualHost IP:80>

ServerAdmin info@domain.ba
DocumentRoot /var/www/server/roundcube/

ServerName webmail.server.domain.com
ServerAlias webmail.*

<Directory /var/www/server/roundcube/>
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all



This is how I enable webmail access for each domain on the server with following URL http://webmail.domain.com/

Edited 1 time(s). Last edit at 05/18/2010 05:16AM by grungy.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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