一个问题问了很多次,但我没有找到对我有帮助的答案。
我有一个在 Ubuntu 12.04.5 LTS 下运行的 Apache 服务器(是的,我需要更新)。
我有一个网页 /var/www/website/index.html
我已在我的提供商处将域转发设置为
https://ip.address/website/index.hmtl
我有一个.htaccess
文件,/home/website/
其中读取
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
Options Indexes
DirectoryIndex index.html
order deny,allow
Run Code Online (Sandbox Code Playgroud)
我已经
LoadModule rewrite_module modules/mod_rewrite.so
在我的/etc/apache2/apache2.conf
尝试访问该网站时,出现错误 The requested URL /website/index.html was not found on this server.
这是我第一次做这样的事情,我完全不知所措...为什么我不能访问我的页面?
更新:我现在按照https://debian-administration.org/article/412/Hosting_multiple_websites_with_Apache2设置所有内容
现在我收到浏览器无法连接到服务器的错误消息?
UPDATE2:我现在error.log
在我的网站目录中有一个文件说
[Wed Dec 07 08:23:10 2016] [error] (2)No such file or directory: could not open transfer log file /home/www/website/logs/access.log.