1. 다음 내용으로 변경(2개 부분)
<code class="hljs"><span class="hljs-tag"><Directory "E:/wamp/bin/apache/apache2.4.9/cgi-bin"> <span class="hljs-keyword">AllowOverride None <span class="hljs-keyword"><span class="hljs-common">Options None <span class="hljs-keyword">Require <span class="hljs-literal">all granted <span class="hljs-tag"></Directory> <span class="hljs-comment"># onlineoffline tag - don't remove <span class="hljs-keyword">Require <span class="hljs-literal">all granted <span class="hljs-keyword"><span class="hljs-common">allow from <span class="hljs-literal">all <span class="hljs-tag"></Directory></span></span></span></span></span></span></span></span></span></span></span></span></span></span></code>
1. 다음 내용을 변경하세요
<code class="hljs"><IfModule dir_module> DirectoryIndex index<span class="hljs-class">.php index<span class="hljs-class">.php3 index<span class="hljs-class">.html index<span class="hljs-class">.htm </IfModule><br></span></span></span></span></code>
2. localhost 폴더에 위의 페이지가 없을 경우 주소창에 localhost를 입력하면 localhost 폴더에 있는 파일들이 표시됩니다
<code class="hljs"><span class="hljs-attribute">error_reporting =<span class="hljs-string"> E_ALL & ~E_NOTICE</span></span></code>
date.timezone = php.ini 파일의 prc(중국 시간대)
<code class="hljs"><span class="hljs-keyword">httpd.conf文件修改, <span class="hljs-keyword">AllowOverride <span class="hljs-literal">all <span class="hljs-keyword">Require <span class="hljs-literal">all granted <span class="hljs-keyword"><span class="hljs-common">allow from <span class="hljs-literal">all</span></span></span></span></span></span></span></span></code>
<code class="hljs"><span class="hljs-tag"><VirtualHost *:80> <span class="hljs-keyword"><span class="hljs-common">ServerName blog <span class="hljs-keyword"><span class="hljs-common">DocumentRoot <span class="hljs-string">"E:/blog" <span class="hljs-tag"><Directory "E:/blog"> <span class="hljs-keyword"><span class="hljs-common">Options Indexes FollowSymLinks <span class="hljs-keyword">AllowOverride <span class="hljs-literal">all <span class="hljs-keyword"><span class="hljs-common">Order Allow,Deny <span class="hljs-keyword"><span class="hljs-common">Allow from <span class="hljs-literal">all <span class="hljs-tag"></Directory> <span class="hljs-tag"></VirtualHost></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></code>
<code class="hljs">文件位置:<span class="hljs-tag">C:\<span class="hljs-tag">Windows\<span class="hljs-tag">System32\<span class="hljs-tag">drivers\<span class="hljs-tag">etc 127<span class="hljs-class">.0<span class="hljs-class">.0<span class="hljs-class">.1 blog</span></span></span></span></span></span></span></span></code>
- 참고:
1. 옵션 색인 FollowSymLinks 그렇지 않은 경우 Apache가 디렉터리 구조를 표시하지 않도록 설정하세요. 사용자는 이 디렉터리의 파일 및 하위 디렉터리 목록을 볼 수 없습니다.
2. 2차 사이트 최초 접속 시 주소 앞에 http://를 붙여야 합니다. (이유는 모르겠습니다)