DigitalOcean,Apache2上的Ubuntu Droplet-端口8000无法打开

我正在尝试在Droplet上打开端口,以添加第二个站点,我想通过ip:port(在我的情况下为8000端口)访问该站点。我有这个配置文件:

main.conf

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html/VetPartnersPrintPortal/public

        <Directory /var/www/html/VetPartnersPrintPortal/public>
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        <IfModule mod_dir.c>
            DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
        </IfModule>

</VirtualHost>

slider.conf

<VirtualHost *:8000>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html/slider/

        <Directory /var/www/html/slider/>
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        <IfModule mod_dir.c>
            DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
        </IfModule>

</VirtualHost>

ufw状态提供以下信息:

状态:有效

To                         action      From
--                         ------      ----
22/tcp                     LIMIT       Anywhere                  
443/tcp                    ALLOW       Anywhere                  
80/tcp                     ALLOW       Anywhere                  
22                         ALLOW       Anywhere                  
8000                       ALLOW       Anywhere                  
8000/tcp                   ALLOW       Anywhere                  
22/tcp (v6)                LIMIT       Anywhere (v6)             
443/tcp (v6)               ALLOW       Anywhere (v6)             
80/tcp (v6)                ALLOW       Anywhere (v6)             
22 (v6)                    ALLOW       Anywhere (v6)             
8000 (v6)                  ALLOW       Anywhere (v6)             
8000/tcp (v6)              ALLOW       Anywhere (v6)
zjytianlang 回答:DigitalOcean,Apache2上的Ubuntu Droplet-端口8000无法打开

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3040507.html

大家都在问