網站提示:You Don’t Have Permission To Access
問題:測試 apache整合環境訪問網站,突然出現錯誤提示“You don’t have permission to access /index.php
on this server.”。其實這裡是由於 httpd-conf 裡面的配置問題,開啟httpd-conf:逐行檢查以下這段程式碼:
-
Options FollowSymLinks
-
AllowOverride None
-
Order deny,allow
-
Deny from all
這裡的“Deny from all”已經拒絕了一切連線。把該行改“allow from all”,修改後的程式碼如下,問題解決。
-
Options FollowSymLinks
-
AllowOverride None
-
Order deny,allow
-
allow from all
-
再次在瀏覽器裡開啟網站,顯示正常。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69957453/viewspace-2762759/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- wamp出現You don’t have permission to access/on this server提示Server
- [php排錯] Forbidden You don't have permission to access / on this server.PHPORBServer
- mac osx Forbidden You don't have permission to access / on this server解決方法MacORBServer
- 裝nagios報You don't have permission to access /nagios/ on this server. 錯誤iOSServer
- Couldn't be opened because you don't have permission to view it 執行時報錯View
- You don't have write permissions for the /usr/bin directory.
- You don't know CSSCSS
- You don't know css(2)CSS
- do not have permission to view information for any of the hosts you requestedViewORM
- You do not have permission to get URL ‘/’ from this server解決方案Server
- PostgreSQL DBA(117) - pgAdmin(Don't do this: Don't use serial)SQL
- 去掉linux中"You have new mail in /var/spool/mail/root"的提示LinuxAI
- PostgreSQL DBA(113) - pgAdmin(Don't do this:Don't use char(n))SQL
- PostgreSQL DBA(109) - pgAdmin(Don't do this:Don't use BETWEEN)SQL
- PostgreSQL DBA(108) - pgAdmin(Don't do this:Don't use upper names)SQL
- 執行git命令時出現Please make sure you have the correct access rights and the repository existsGit
- PostgreSQL DBA(115) - pgAdmin(Don't do this:Don't use varchar(n) by default)SQL
- PostgreSQL DBA(116) - pgAdmin(Don't do this:Don't use money&serial)SQL
- PostgreSQL DBA(111) - pgAdmin(Don't do this:Don't use CURRENT_TIME)SQL
- PostgreSQL DBA(112) - pgAdmin(Don't do this:Don't use timestamptz(0))SQL
- PostgreSQL DBA(110) - pgAdmin(Don't do this: Don't use timestamp without tz)SQL
- You have new mail in /var/spool/mail/rootAI
- Don't let me think 筆記筆記
- Don't overlook STATSPACK in Oracle 10gOracle 10g
- don't cry(original) - guns and rosesROS
- 萬能方法解決——You have an error in your SQL syntaxErrorSQL
- The virtual hostname(s), racvip02, you have specified appearsAPP
- iOS - No account with iTunes Connect access have been found for the teamiOS
- [譯] Don’t call me, I’ll call you:使用 Redux-Saga 管理 React 應用中的非同步 action (上)ReduxReact非同步
- Access denied; you need (at least one of) the PROCESS privilege(s)AST
- Hive JDBC:Permission denied: user=anonymous, access=EXECUTE, inode=”/tmp”HiveJDBC
- PostgreSQL DBA(104) - pgAdmin(Don't do this:Rule)SQL
- PostgreSQL DBA(106) - pgAdmin(Don't do this:NOT IN)SQL
- Extract or Replicat Fail to Start (Don't Start) With No Error MessagesAIError
- studio if you already have a 64-bit JDK installedJDK
- mysql [ERROR] Can't create IP socket: Permission deniedMySqlError
- PostgreSQL DBA(103) - pgAdmin(Don't do this:Encoding)SQLEncoding
- 《Look Mom, I don’t use Shellcode》議題解析