在httpd.conf中找到这么一段: Alias /mysql/ "${path}/phpmyadmin/" <Directory "${path}/phpmyadmin"> Options FollowSymLinks Indexes AllowOverride None Order deny,allow allow from 127.0.0.1 deny from all </Directory> Alias /home/ "${path}/home/" <Directory "${path}/home"> Options FollowSymLinks Indexes AllowOverride None Order deny,allow allow from 127.0.0.1 deny from all </Directory>看来,是不允许home和mysql在127.0.0.1以外访问。如何才能实现在保证安全的前提下,在其它机器上可以访问这两个目录?
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 127.0.0.1
deny from all
</Directory>
Alias /home/ "${path}/home/" <Directory "${path}/home">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 127.0.0.1
deny from all
</Directory>看来,是不允许home和mysql在127.0.0.1以外访问。如何才能实现在保证安全的前提下,在其它机器上可以访问这两个目录?
那有这样访问mysql目录,既然是phpmyadmin
就这样http://xxx.xxx.xxx.xxx/phpmyadmin/
phpmyadmin要在root目录
allow from 127.0.0.1
deny from all=>Order allow,deny
Allow from all
allow from 192.168.1 //允许子网访问
deny from all