mampstack (NOT MAMP) 용 virtualHost를 설정하려고합니다.VirtualHost 설정이 항상 작동하지 않습니다.
을 내 httpd.conf 파일에서 나는 이것은 올바른 (I 포트 8080, NOT (80)에 듣고있어)되어
Listen 8080
을 확인했습니다 이것은 내가 지금까지 한 일이다.
은 그 때 나는 주석했습니다 : Include conf/extra/httpd-vhosts.conf
을 내 httpd.conf
파일에 내 호스트에서
나는 다음과 같은 추가 한 파일 : 127.0.0.1 mext-pst.local
합니다.
은 httpd-vhosts.conf
에서 내가 추가 한 : 나는 http://mext-pst.local/
에 갈 때
NameVirtualHost *:8080
<VirtualHost *:8080>
DocumentRoot "/Applications/mampstack-5.4.20-0/apache2/htdocs"
ServerName 127.0.0.1
ServerAlias localhost
SetEnv APPLICATION_ENV development
SetEnv APPLICATION_DOMAIN localhost
</VirtualHost>
<VirtualHost *:8080>
DocumentRoot "/Applications/mampstack-5.4.20-0/apache2/htdocs/mext-pst-dashboard/web"
ServerName mext-pst.local
ServerAlias mext-pst.local
SetEnv APPLICATION_ENV development
SetEnv APPLICATION_DOMAIN mext-pst.local
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteRule^http://%{HTTP_HOST}:8080%{REQUEST_URI} [P]
</VirtualHost>
지금 난 그냥 그 페이지와 연결할 수 없습니다 브라우저의 오류가 ....
나는 다음과 같은 오류 얻을 http://mext-pst.local:8080/
에 갈 때 :
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /index.php.
Reason: DNS lookup failure for: mext-pst.local:8080
나는 그것이 작동 http://mext-pst.local:8080/index.php
로 이동 ...
Apache 용 포트를 변경하거나 mod_proxy와'ProxyPass/http : // localhost : 8080/ProxyPassReverse/http : // localhost : 8080 /'을 사용해야합니다. – mkjasinski