網站提示: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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- You don't have write permissions for the /usr/bin directory.
- You don't know CSSCSS
- You don't know css(2)CSS
- PostgreSQL DBA(109) - pgAdmin(Don't do this:Don't use BETWEEN)SQL
- PostgreSQL DBA(117) - pgAdmin(Don't do this: Don't use serial)SQL
- PostgreSQL DBA(108) - pgAdmin(Don't do this:Don't use upper names)SQL
- PostgreSQL DBA(112) - pgAdmin(Don't do this:Don't use timestamptz(0))SQL
- PostgreSQL DBA(113) - pgAdmin(Don't do this:Don't use char(n))SQL
- PostgreSQL DBA(110) - pgAdmin(Don't do this: Don't use timestamp without tz)SQL
- PostgreSQL DBA(116) - pgAdmin(Don't do this:Don't use money&serial)SQL
- PostgreSQL DBA(115) - pgAdmin(Don't do this:Don't use varchar(n) by default)SQL
- PostgreSQL DBA(111) - pgAdmin(Don't do this:Don't use CURRENT_TIME)SQL
- 執行git命令時出現Please make sure you have the correct access rights and the repository existsGit
- Do you wish to have better graphics?
- Git push時報錯:fatal: Could not read from remote repository. Please make sure you have the correct access rightsGitREM
- You have new mail in /var/spool/mail/rootAI
- Third season twentieth episode,do you have a dollhouse?
- PostgreSQL DBA(106) - pgAdmin(Don't do this:NOT IN)SQL
- Permission denied:user=xxx,access=WRITE,inode=xxx
- studio if you already have a 64-bit JDK installedJDK
- 如何解決"You have an error in your SQL syntax"ErrorSQL
- PostgreSQL DBA(104) - pgAdmin(Don't do this:Rule)SQL
- PostgreSQL DBA(103) - pgAdmin(Don't do this:Encoding)SQLEncoding
- 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非同步
- PostgreSQL DBA(107) - pgAdmin(Don't do this:NOT IN vs NOT EXISTS)SQL
- git在pull時報錯You have not concluded your mergeGit
- 萬能方法解決——You have an error in your SQL syntaxErrorSQL
- PostgreSQL DBA(105) - pgAdmin(Don't do this:psql&inheritance)SQL
- 2018-03-24 Why Don't Students Like School? 005
- git-----You have not concluded your merge (MERGE_HEAD exists)解決Git
- paramiko 2.4.2 has requirement cryptography>=1.5, but you'll have cryptography 1.3.1 which is incompUIREM
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQLMySqlJDBCExceptionError
- PostgreSQL DBA(140) - PG 12(Don't log incomplete startup packet if it's empty)SQL
- git中提示 please tell me who you areGit
- Mongodb安裝坑 - Service 'MongoDB Server' (MongDB) failed to start. Verify that you have...MongoDBServerAI
- 安裝ROS出現 Unable to Correct Problems ‘You have Held Broken Packages’ 錯誤ROSPackage
- FILESTREAM feature can't be enabled if you use cluster shared volumes