生物系统

系统生物学和计算生物学

只需要在/etc/apache2/sites-available下仿照default建立一个virtualhost文件即可,
最后不要忘了在sites-enabled下建立ln -s到sites-available

如果使用的是端口, 一定要修改/etc/apache2下的ports.conf打开对应端口监听

如果是域名解析, 则要在/etc/hosts 中增加对应说明
比如
127.0.0.1 jjnncc.de localhost
127.0.0.1 Keesburg
127.0.0.1 jane.jjnncc.de
127.0.0.1 gosynthetic.jjnncc.de

同时虚拟主机的设置中要增加一行ServerName jane.jjnncc.de, 比如
<VirtualHost *:80>
ServerAdmin liang@biozentrum.uni-wuerzburg.de
ServerName jane.jjnncc.de
DocumentRoot /home/binf027/public_html/jane/htdocs
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/binf027/public_html/jane/htdocs>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /home/binf027/public_html/jane/cgi-bin/
<Directory "/home/binf027/public_html/jane/cgi-bin/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/home/binf027/public_html/jane/doc/"
<Directory "/home/binf027/public_html/jane/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>