如何在Linux / Debian上打开555端口

前端之家收集整理的这篇文章主要介绍了如何在Linux / Debian上打开555端口前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我希望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.

原文链接:https://www.f2er.com/linux/396389.html

猜你在找的Linux相关文章