
我的 vps 上有很多網域。我配置了 postfix,我希望每個網域都可以存取 rainloop webmail 安裝。我不想為每個網域建立子網域,這會消耗太多時間!
我試過這個:
# domain: mail.*
# public: /var/www/projects/rainloop
<virtualhost *:80>
ServerAdmin sandrodz@
ServerName mail.*
ServerAlias www.mail.*
#DirectoryIndex index.html
DocumentRoot /var/www/projects/rainloop
#Allow .htaccess files to work
<Directory /var/www/projects/rainloop>
Options FollowSymLinks
AllowOverride All
</Directory>
#Custom log file locations
LogLevel warn
ErrorLog ${APACHE_LOG_DIR}/rainloop_error.log
CustomLog ${APACHE_LOG_DIR}/rainloop_access.log combined
</virtualhost>
答案1
哇,想通了。但關於此的文檔不存在!
ServerAdmin sandrodz@
ServerName mail.example.com
ServerAlias mail.*
這有效。所以serveralias支援通配符。