# 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"
在Allow from ::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>
,它应该可以在本地网络上运行。
In your xampppath\apache\conf\extra open file httpd-xampp.conf and find the below tag:
# 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>
and add
"Allow from all"
after Allow from ::1 127.0.0.0/8 {line}
Restart xampp, and you are done.
In later versions of Xampp
...you can simply remove this part
#
# 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>
from the same file and it should work over the local network.
Edit /opt/lampp/etc/extra/httpd-xampp.conf and adding Require all granted line at bottom of block <Directory "/opt/lampp/phpmyadmin"> to have the following code:
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
</Directory>
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
#
# 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>
This answer is for XAMPP on Ubuntu.
The manual for installation and download is on (site official)
http://www.apachefriends.org/it/xampp-linux.html
After to start XAMPP simply call this command:
sudo /opt/lampp/lampp start
You should now see something like this on your screen:
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
And the restast with sudo //opt/lampp/lampp restart
You to fix most of the security weaknesses simply call the following command:
/opt/lampp/lampp security
After the change this file
sudo kate //opt/lampp/etc/extra/httpd-xampp.conf
Find and replace on
#
# 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>
发布评论
评论(3)
在你的
xampppath\apache\conf\extra 打开文件httpd-xampp.conf 并找到以下标签:
并
在Allow from ::1 127.0.0.0/8 {line}后面
添加重新启动xampp,就完成了。
在 Xampp 的更高版本中
...您可以简单地从同一文件中删除这部分
,它应该可以在本地网络上运行。
In your
xampppath\apache\conf\extra open file httpd-xampp.conf and find the below tag:
and add
after Allow from ::1 127.0.0.0/8 {line}
Restart xampp, and you are done.
In later versions of Xampp
...you can simply remove this part
from the same file and it should work over the local network.
这个解决方案对我来说效果很好:
http://www.apachefriends.org /f/viewtopic.php?f=17&t=50902&p=196185#p196185
编辑/opt/lampp/etc/extra/httpd-xampp.conf 并添加 Require all granted line at the Bottom of block
具有以下代码:This solution worked well for me:
http://www.apachefriends.org/f/viewtopic.php?f=17&t=50902&p=196185#p196185
Edit /opt/lampp/etc/extra/httpd-xampp.conf and adding Require all granted line at bottom of block
<Directory "/opt/lampp/phpmyadmin">
to have the following code:这个答案适用于 Ubuntu 上的 XAMPP。
安装和下载手册位于(官方网站)
启动 XAMPP 后,只需调用此命令:
您现在应该在屏幕上看到类似这样的内容:
如果您有此
.解决方案是
使用 sudo //opt/lampp/lampp restart 重新启动
要修复大部分安全漏洞,只需调用以下命令:
更改此文件后
查找并替换
This answer is for XAMPP on Ubuntu.
The manual for installation and download is on (site official)
After to start XAMPP simply call this command:
You should now see something like this on your screen:
If you have this
. The solution is
And the restast with
sudo //opt/lampp/lampp restart
You to fix most of the security weaknesses simply call the following command:
After the change this file
Find and replace on