It’s very normal for me to visit my host and my resources when I found that I was debugging with my colleagues today. I changed it
C:\Windows\System32\drivers\etc\hosts
xx.xx.xx.xx newjin1.com // xx.xx.xx.xx My LAN IP newjin1.com my configured domain name
But it does suggest that:
Youdon’thavepermissiontoaccess/ index.phponthisserver.
Apache/2.4.18(Win32)PHP/5.6.19Serverat newjin1.comPort80
According to the online search, it should be changed httpd.conf File, but my this is a virtual directory, multi domain ah, most of the Internet can not follow, to understand why change, change where
original virtual host configuration :
<VirtualHost *:80&>
ServerName newjin1.com
DocumentRoot D:\wamp\www\guanjin1\yiqifei\php
<Directory “D:\wamp\www\guanjin1\yiqifei\php”&>
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory&>
</VirtualHost&>
to change the virtual host configuration, the red words below are the places to change
<VirtualHost *:80&>
ServerName newjin1.com
DocumentRoot D:\wamp\www\guanjin1\yiqifei\php
<Directory “D:\wamp\www\guanjin1\yiqifei\php”&>
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
allow from all
</Directory&>
</VirtualHost&>
It’s OK after I change it. If it’s not OK after I change it, I can see other changes, such as httpd.conf Learn to draw inferences from one instance.
Similar Posts:
- [Solved] Apache Startup Error: httpd: apr_sockaddr_info_get() failed for
- About the Ubuntu configuration file apache2 httpd.conf position
- [Solved] Apache Warning: DocumentRoot must be a directory
- Windows php Call to undefined function curl_init()
- How to Solve Apache2.4 Reason: Error reading from remote server
- ServerRoot must be a valid directory
- ubuntu apache2: apr_sockaddr_info_get() failed
- Apache was unable to start solving the requested operation has failed
- Workaround for “could not retrieve mirrorlist” during Yum installation
- Apache : Error: Apache shutdown unexpectedly [How to Solve]