Find Apache's httpd.conf configuration file:
Options Indexes FollowSymLinks changed to:
Options FollowSymLinks means removing Indexes.
Extra information: setting up virtual host in apache
In IIS, we can easily set up virtual hosts through different IPs or ports or host headers.
The same works in apache.
Suppose there are two domain names www.abc1.org and www.abc2.org, which need to point to a server address at the same time.
When accessing through these two domain names, if you want to present different content, you need to set up a virtual host.
#Vi /etc/apache/httpd.conf
join in:
The following is the quoted content: namevirtualhost* <VirtualHost *>ServerName www.abc1.org DocumentRoot /var/www/songzi1 </VirtualHost> <VirtualHost *>ServerName www.abc2.org DocumentRoot /var/www/songzi2 </VirtualHost> |
That's it.