这里有人知道apache网络服务器以及如何设置它吗?
在尝试设置它的大部分时间里。并且每次都惨败。 在站点中创建了一个配置文件,并带有指向启用站点的符号链接。
使Web服务器在本地运行。有用。在网络浏览器中打孔127.0.0.1可直接访问apache启动页面。问题出在我创建的配置文件中设置虚拟主机。它只是不应该工作。看来Apache拒绝接受要使用的新目录和文件。在输入虚拟主机地址时,它只是链接到Web服务器的启动页面。
如果有人能指出我做错了事,将不胜感激。
下面是.conf文件设置:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName werner.x
ServerAlias www.werner.x
ServerAdmin webmaster@localhost
DocumentRoot /home/werner/Python/web
#DirectoryIndex test.html
<Directory /home/werner/Python/web>
Options +Indexes +FollowSymLinks
Order allow, deny
Allow from all
Require all granted
</Directory>
DirectoryIndex test.html
</VirtualHost>