[Alias configuration method] for apache virtual host configuration
Currently, my apache virtual host settings are as follows:
<VirtualHost ip: 80>
ServerAdmin webmaster @ localhost
DocumentRoot/usr/local/www/html/domain.com
ServerName domain.com
ServerAlias domain.com www.domain.com
</VirtualHost>
1. I want to add the alias of the cgi-bin directory. What should I do? I tried to write ServerAlias domain.com www.domain.com,/cgi-bin/usr/local/www/html/cgi-bin but not.
2. If I need to access webmail in the form of mail.domain.com, do I need to write another virtual host setting or can I implement it in the alias? (The webmail software directory is not in the user directory ).
Many of my friends have engaged in virtual hosts. Can you write your experience in setting up virtual hosts?
This is different from the shell command. You can add other domain names directly after serveralias.
ServerAlias www.domain1.com www.domain2.com www.domain3.com
In the second case, do I need to set up another virtual host separately?
<Export urlhost...>
....
ScriptAlias/cgi-bin/"/usr/local/www/html/cgi-bin /"
....
</Vir...>