Score:0

Ubuntu VirtualHost on port 8003 not working remotly

tr flag

I trying create Apache Virtual Host on port 8003.

My site configuration file (/etc/apache2/sites-available/test.oracle.dev.conf):

<VirtualHost *:8003>
    DocumentRoot /var/www/html/test

    ServerName test.oracle.tf
    
    <Directory "/var/www/html/test">
        allow from all
        Options None
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot /var/www/html/test2

    ServerName test.oracle.tf

    <Directory "/var/www/html/test2">
        allow from all
        Options None
        Require all granted
    </Directory>
</VirtualHost>

Ports.conf:

Listen 0.0.0.0:80
Listen 0.0.0.0:8003

<IfModule ssl_module>
    Listen 443
</IfModule>

<IfModule mod_gnutls.c>
    Listen 443
</IfModule>

UFW is disable for test.

I try connect from other host (Windows OS) . I added test.oracle.tf to host file.

Site: test.oracle.tf is working corectly.

But site: test.oracle.tf:8003 does't work.

When I trying open site test.oracle.tf:8003 tcpdump port 8003 showing: TCP DUMP

curl 127.0.0.1:8003 corectly showing page content

What I Was made wrong?

Score:0
jp flag

tcpdump output shows that you don't get any responses to your requests. As you said that port 80 works normally then IP routing is working. Most probably port 8003 is blocked by a firewall somewhere between source and target hosts.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.