虚拟主机文件 Ubuntu (10.04.02) 有问题
无法让网站正常工作。
得到这个VH文件,完成a2ensite并重新加载,VH文件名是bemanningstockholm.nu 让其他站点可以使用几乎完全相同的 VH 文件并且该域可以工作。
在 DocumentRoot 上有一个文件夹,还检查了拼写错误。
不知道我现在做错了什么。
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName bemanningstockholm.nu
DocumentRoot /var/www/bemanningstockholm.nu/htdocs
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/bemanningstockholm.nu/htdocs>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/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
</VirtualHost>
<VirtualHost *:80>
ServerName bemanningstockholm.nu
ServerAlias www.bemanningstockholm.nu
</VirtualHost>
Can't get a site to work.
Got this VH file, done the a2ensite and the reload, the VH filename is bemanningstockholm.nu
Have other sites that works with almost the exakt same VH-file and that domain works.
Have a folder on the DocumentRoot, checked misspellning also.
Don't know what I'm doing wrong at the moment.
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName bemanningstockholm.nu
DocumentRoot /var/www/bemanningstockholm.nu/htdocs
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/bemanningstockholm.nu/htdocs>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/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
</VirtualHost>
<VirtualHost *:80>
ServerName bemanningstockholm.nu
ServerAlias www.bemanningstockholm.nu
</VirtualHost>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想你已经:
两次了。
I think you have :
twice.