我希望PHPmyadmin在mysite.com:555(555端口)工作
# PHPMyAdmin default Apache configuration <VirtualHost *:555> Alias /PHPmyadmin /usr/share/PHPmyadmin <Directory /usr/share/PHPmyadmin> Options FollowSymLinks DirectoryIndex index.PHP <IfModule mod_PHP5.c> AddType application/x-httpd-PHP .PHP PHP_flag magic_quotes_gpc Off PHP_flag track_vars On PHP_flag register_globals Off PHP_value include_path . </IfModule> </Directory> # Authorize for setup <Directory /usr/share/PHPmyadmin/setup> <IfModule mod_authn_file.c> AuthType Basic AuthName "PHPMyAdmin Setup" AuthUserFile /etc/PHPmyadmin/htpasswd.setup </IfModule> Require valid-user </Directory> # Disallow web access to directories that don't need it <Directory /usr/share/PHPmyadmin/libraries> Order Deny,Allow Deny from All </Directory> <Directory /usr/share/PHPmyadmin/setup/lib> Order Deny,Allow Deny from All </Directory> </VirtualHost>
但mysite.com:555不起作用….
解决方法
由于这似乎是一个Apache配置,我怀疑你还需要将一个Listen指令添加到/etc/apache2/ports.conf(对于Debian).
它应该是听555.