apache的網頁連不上 - Linux
By Steve
at 2018-11-27T20:18
at 2018-11-27T20:18
Table of Contents
大家好,最近被老師要求架一個網站
因為配的虛擬主機是用linux只好用了...
版本是 Ubuntu 16.05 LTS
沒圖形介面(架網站不能用瀏覽器..QQ)
------------------------------------
我直接先把errorlog放上來,後面在來慢慢說明問題好了
瀏覽器直接連IP出現的畫面是 Forbidden Server unable to read htaccess file
errorlog在這裡------
(13)Permission denied: [client XXX.XXX.4.85:19051] AH00529:
/var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure
it is readable and that '/var/www/html/' is executable, referer:
http://XXX.XXX.XXX.232/
看起來是那個htaccess的問題吧?
然後在放上我的apache2.conf 查到說要修改的地方,麻煩幫我看一下~
我查到的大部分都說要改AllowOverride
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/html/>
AllowOverride All
</Directory>
#<Directory /srv/>
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
#</Directory>
請問這樣看得出是哪裡有問題嗎??
還有htaccess到底是甚麼,查了一堆還是看不懂
好像是甚麼權限問題??
還請各位幫忙一下,謝謝!
--
因為配的虛擬主機是用linux只好用了...
版本是 Ubuntu 16.05 LTS
沒圖形介面(架網站不能用瀏覽器..QQ)
------------------------------------
我直接先把errorlog放上來,後面在來慢慢說明問題好了
瀏覽器直接連IP出現的畫面是 Forbidden Server unable to read htaccess file
errorlog在這裡------
(13)Permission denied: [client XXX.XXX.4.85:19051] AH00529:
/var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure
it is readable and that '/var/www/html/' is executable, referer:
http://XXX.XXX.XXX.232/
看起來是那個htaccess的問題吧?
然後在放上我的apache2.conf 查到說要修改的地方,麻煩幫我看一下~
我查到的大部分都說要改AllowOverride
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/html/>
AllowOverride All
</Directory>
#<Directory /srv/>
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
#</Directory>
請問這樣看得出是哪裡有問題嗎??
還有htaccess到底是甚麼,查了一堆還是看不懂
好像是甚麼權限問題??
還請各位幫忙一下,謝謝!
--
Tags:
Linux
All Comments
By Leila
at 2018-12-01T19:43
at 2018-12-01T19:43
By Enid
at 2018-12-03T05:12
at 2018-12-03T05:12
By Jake
at 2018-12-04T10:33
at 2018-12-04T10:33
By Leila
at 2018-12-08T15:03
at 2018-12-08T15:03
By Enid
at 2018-12-12T21:00
at 2018-12-12T21:00
By Ethan
at 2018-12-15T19:33
at 2018-12-15T19:33
By Odelette
at 2018-12-19T05:30
at 2018-12-19T05:30
By Victoria
at 2018-12-20T12:07
at 2018-12-20T12:07
By Skylar DavisLinda
at 2018-12-23T16:16
at 2018-12-23T16:16
By Kyle
at 2018-12-25T11:21
at 2018-12-25T11:21
By Leila
at 2018-12-29T20:49
at 2018-12-29T20:49
By Puput
at 2018-12-30T10:08
at 2018-12-30T10:08
By Margaret
at 2019-01-02T03:19
at 2019-01-02T03:19
By Rachel
at 2019-01-05T17:47
at 2019-01-05T17:47
By Zora
at 2019-01-08T19:54
at 2019-01-08T19:54
By Madame
at 2019-01-09T17:39
at 2019-01-09T17:39
By Iris
at 2019-01-14T06:41
at 2019-01-14T06:41
By Zenobia
at 2019-01-14T13:59
at 2019-01-14T13:59
Related Posts
shell 變數在作執行指令
By Hedda
at 2018-11-26T16:38
at 2018-11-26T16:38
紅帽釋出RHEL 8 Beta版本,提供原生容器開發包
By Anthony
at 2018-11-21T22:41
at 2018-11-21T22:41
在Apache上啟動VirtualHost使用HTTP和HTTPS
By Ula
at 2018-11-21T09:36
at 2018-11-21T09:36
Secure Boot的疑問
By Iris
at 2018-11-20T14:28
at 2018-11-20T14:28
debian使用NFSv4失敗
By Brianna
at 2018-11-19T00:19
at 2018-11-19T00:19