Unable to access Apache web server and virtual host from other Ubuntu PC in LAN


Ahir

From the server PC (like a personal computer) I can access the Apache web server http://192.168.0.21 using this link and the virtual host 50000SiteName http://192.168.0.21/50000SiteName

But I can't access the above link from other Ubuntu PCs in the LAN.

Likewise, I am able to connect to the virtual host in Dreamweaver from the same server PC, but not from another Ubuntu PC in the LAN with the same settings.

I think I might need some other settings in the Apache web server to make this happen, but not sure what they are, so please let me know what I'm missing and what I should be doing.

Below are the details of the operating system and web server

  • Ubuntu 14.04
  • Apache version 2.4.7

Below code is mentioned in etc/apache2/apache2.conf file

  • Server name 192.168.0.21

Below code is mentioned in etc/apache2/port.conf file

  • NameVirtualHost*: 80
  • Listen*: 80

The "50000SiteName" virtual host is created under the Apache web server. And its configuration file etc/apache2/sites-avaiable/50000SiteName.conf contains the following code.

<VirtualHost *>
    DocumentRoot /var/www/50000SiteName
    ServerName 192.168.0.21
    <Directory /var/www>
        allow from all
        Options None
    </Directory>
    <Directory var/www/50000SiteName>
        allow from all
        AllowOverride All
        Require all granted
        Options None
    </Directory>
</VirtualHost>
Bistoko

First check if port 80 is open from clientPc

nmap -p 80 -PN 192.168.0.21

If not turned on and you are using the ufw firewall, allow through

sudo ufw allow from 192.168.0.0/24 to any port 80

Test again if the port is open

nmap -p 80 -PN 192.168.0.21

Then <Directory>follow the steps below to edit the part (works for me)

<Directory /var/www/50000SiteName>
    AllowOverride All
    Order allow,deny
    allow from all
    Require all granted
</Directory>

Related


Unable to access server on Virtual Box from host?

Banuradi I'm running Ubuntu 18.04.1 in Virtual Box for MacOS. I'm setting up a server localhostin Ubuntu with Python Flask running on Python Flask , http://127.0.0.1:5000/trying to access that localhost from a Mac, but can't. I used a bridge type connection fo

Unable to access server on Virtual Box from host?

Banuradi I'm running Ubuntu 18.04.1 in Virtual Box for MacOS. I'm setting up a server localhostin Ubuntu with Python Flask running on Python Flask , http://127.0.0.1:5000/trying to access that localhost from a Mac, but can't. I used a bridge type connection fo

Unable to access Apache virtual host from local network

username I have setup a virtual host with Apache2 using the following configuration: <VirtualHost *:8080> ServerName example.com DocumentRoot /var/www/example.com </VirtualHost> The website can be accessed from outside. example.com However, if I ente

Unable to access Apache virtual host from local network

username I have setup a virtual host with Apache2 using the following configuration: <VirtualHost *:8080> ServerName example.com DocumentRoot /var/www/example.com </VirtualHost> The website can be accessed from outside. example.com However, if I ente

Unable to access apache2 virtual host from another computer

Kaikoura I'm running an apache2 webserver from my computer and when I access the site from my computer it works fine, but when I try to access it from another machine (running windows) the browser outputs, The site cannot be reached. Here is my site configurat

Unable to access Apache virtual host from local network

username I have setup a virtual host with Apache2 using the following configuration: <VirtualHost *:8080> ServerName example.com DocumentRoot /var/www/example.com </VirtualHost> The website can be accessed from outside. example.com However, if I ente

Unable to access Apache virtual host from local network

username I have setup a virtual host with Apache2 using the following configuration: <VirtualHost *:8080> ServerName example.com DocumentRoot /var/www/example.com </VirtualHost> The website can be accessed from outside. example.com However, if I ente

Unable to access Apache httpd virtual host

alone I am new to linux and I can install my LAMP server on Manjaro. Got it all, but now I'm having issues setting up the virtual host. I used httpd and commented out "include conf/extra/httpd-vhosts.conf" in /etc/httpd/conf/httpd.conf . But after editing http

Unable to access Apache httpd virtual host

alone I am new to linux and I can install my LAMP server on Manjaro. Got it all, but now I'm having issues setting up the virtual host. I used httpd and commented out "include conf/extra/httpd-vhosts.conf" in /etc/httpd/conf/httpd.conf . But after editing http

Unable to access Apache httpd virtual host

alone I am new to linux and I can install my LAMP server on Manjaro. Got it all, but now I'm having issues setting up the virtual host. I used httpd and commented out "include conf/extra/httpd-vhosts.conf" in /etc/httpd/conf/httpd.conf . But after editing http

Unable to access Apache httpd virtual host

alone I am new to linux and I can install my LAMP server on Manjaro. Got it all, but now I'm having issues setting up the virtual host. I used httpd and commented out "include conf/extra/httpd-vhosts.conf" in /etc/httpd/conf/httpd.conf . But after editing http

Unable to access Apache httpd virtual host

alone I am new to linux and I can install my LAMP server on Manjaro. Got it all, but now I'm having issues setting up the virtual host. I used httpd and commented out "include conf/extra/httpd-vhosts.conf" in /etc/httpd/conf/httpd.conf . But after editing http

How to host server on local pc (ubuntu) and setup virtual host

Tasdik Rahman I am new to Ubuntu and I want to host a server on it. I googled a bit and read a bit about Apache and IIS, but I got a lot out of it. Now, I am confused as to how to proceed. What I want to do is Host server on local PC and set up virtual host on

Unable to access web server in Docker swarm from host

Mount I started using Docker on macOS and got stuck trying to complete part 4 of the Getting Started Guide . I created two additional virtual machines ( and ), set up as cluster manager and worker respectively. Then, a stack of 5 Flask web servers was deployed

Unable to access VirtualBox web server on port 9000 from host OS

grssnbchr I have an Ubuntu 12.04 guest VB on a W7 host. On the guest, I am running a web server on port 9000 and the web server is accessible from the guest from above 127.0.0.1:9000. In VirtualBox, I have two network adapters enabled for the guest. I didn't c

Unable to access web server in Docker swarm from host

Mount I started using Docker on macOS and got stuck trying to complete part 4 of the Getting Started Guide . I created two additional virtual machines ( and ), set up as cluster manager and worker respectively. Then, a stack of 5 Flask web servers was deployed

Unable to access VirtualBox web server on port 9000 from host OS

grssnbchr I have an Ubuntu 12.04 guest VB on a W7 host. On the guest, I am running a web server on port 9000 and the web server is accessible from the guest from above 127.0.0.1:9000. In VirtualBox, I have two network adapters enabled for the guest. I didn't c

Unable to access web server from local virtual network

Akalenuk I have installed several virtual machines. Some uder Windows, some under Fedora Linux. On one of the Fedora machines, I have the Apache web server installed. 172.16.27.129:80I set the server name in httpd.conf to , make sure access to the html directo