네트워크에서 XAMPP에 액세스하려고 할 때 오류 발생
시도 할 때 다음과 같은 오류가 발생 access Xampp from a network하지만 해결 방법을 알지 못합니다. 어떤 도움 ?? 정말 혼란스러워
액세스 금지 :
요청 된 개체에 대한 액세스는 로컬 네트워크에서만 가능합니다. 이 설정은 "httpd-xampp.conf"파일에서 구성 할 수 있습니다.
당신에 xampppath \ 아파치 \ conf의 \ 추가 파일을 열 아파치 - xampp.conf 및 것은 태그 아래 찾을 수 있습니다 :
# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
그리고 추가
"Allow from all"
:: 1 127.0.0.0/8 {line}에서 허용 후
xampp를 다시 시작하면 완료됩니다.
이후 버전의 Xampp
...이 부분을 간단히 제거 할 수 있습니다.
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
동일한 파일에서 로컬 네트워크를 통해 작동해야합니다.
이 솔루션은 저에게 잘 작동했습니다. http://www.apachefriends.org/f/viewtopic.php?f=17&t=50902&p=196185#p196185
/opt/lampp/etc/extra/httpd-xampp.conf를 편집 <Directory "/opt/lampp/phpmyadmin">하고 다음 코드를 갖도록 블록 하단에 모든 허가 된 줄 필요를 추가 합니다.
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
</Directory>
이 답변은 Ubuntu의 XAMPP에 대한 것입니다.
설치 및 다운로드 매뉴얼이 있습니다 (사이트 공식)
http://www.apachefriends.org/it/xampp-linux.html
XAMPP를 시작한 후 다음 명령을 호출하면됩니다.
sudo /opt/lampp/lampp start
이제 화면에 다음과 같은 내용이 표시됩니다.
Starting XAMPP 1.8.1...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.
이게 있으면
Starting XAMPP for Linux 1.8.1...
XAMPP: Another web server daemon is already running.
XAMPP: Another MySQL daemon is already running.
XAMPP: Starting ProFTPD...
XAMPP for Linux started
. 해결책은
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/mysql stop
그리고 나머지는 sudo //opt/lampp/lampp restart
대부분의 보안 취약점을 수정하려면 다음 명령을 호출하면됩니다.
/opt/lampp/lampp security
변경 후이 파일
sudo kate //opt/lampp/etc/extra/httpd-xampp.conf
찾기 및 바꾸기
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8
Allow from all
#\
# fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
# fe80::/10 169.254.0.0/16
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
참고 URL : https://stackoverflow.com/questions/6083323/error-when-trying-to-access-xampp-from-a-network
'program story' 카테고리의 다른 글
| jQuery로 호버 상태를 강제하는 방법은 무엇입니까? (0) | 2020.11.17 |
|---|---|
| Linux : 기본 브라우저에서 URL을 여는 명령 (0) | 2020.11.17 |
| Eclipse Indigo-Android ADT 플러그인을 설치할 수 없음 (0) | 2020.11.16 |
| MVC3 Razor를 사용하여 Viewbag에서 HTML을 렌더링하는 방법 (0) | 2020.11.16 |
| Facebook SDK 로그인은 iOS 9에서 내 애플리케이션을 다시 호출하지 않습니다. (0) | 2020.11.16 |