Can't access virtual host on Centos/apache


Sean Cunningham

I'm running a CentOS 6.8 server with VMWare Fusion and have Apache up and running, although I can't access any virtual hosts. I also followed this walkthrough ( https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-6 ), although I also tried using Webmin to no avail. Apache stops/restarts, no errors, and sees nothing in /var/log/httpd/error_log. This is the end of /etc/httpd/conf/httpd.conf.

NameVirtualHost *:80

<VirtualHost *:80>
        ServerAdmin [email protected]
        DocumentRoot /var/www/relynx.dev/public_html
        ServerName relynx.dev
        ServerAlias www.relynx.dev
        ErrorLog /var/www/relynx.dev/logs/error.log
</VirtualHost>
BOUKANDOURA Mhamed

In my experience, you need to check two things:

1- Your firewall

 service iptables status 

See if there is an open port for 80

2- Check your DNS:

Check to see if the server's domain name is set in the Hosts file.

(ip@)192.168.56.x  relynx.dev

Alternatively, you can also use the domain's ip@insted in apache.

Related


Can't access virtual host on Centos/apache

Sean Cunningham I'm running a CentOS 6.8 server with VMWare Fusion and have Apache up and running, although I can't access any virtual hosts. I also followed this walkthrough ( https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts

Can't access wp-admin using virtual host

Grigory Volkov I have a problem with my WordPress site. It works perfectly on localhost, but when I try to add a virtual host to it, I can't access the admin panel. I am using xampp. I've tried to access it by typing http://localhost/commerce/wp-adminand in th

Can't access wp-admin using virtual host

Grigory Volkov I have a problem with my WordPress site. It works perfectly on localhost, but when I try to add a virtual host to it, I can't access the admin panel. I am using xampp. I've tried to access it by typing http://localhost/commerce/wp-adminand in th

Can't access wp-admin using virtual host

Grigory Volkov I have a problem with my WordPress site. It works perfectly on localhost, but when I try to add a virtual host to it, I can't access the admin panel. I am using xampp. I've tried to access it by typing http://localhost/commerce/wp-adminand in th

Can't get virtual host to work

Clequis I have 3 drupal websites working on my local developer Ubuntu 14.04. I'm having trouble getting the second and third person to work, and when they do, they seem to be lucky. Those 3 took me a long time, but now I need the fourth and I can't get it to w

I can't get the virtual host to work

Jordi Huertas I am a Linux newbie and web developer. I'm configuring a virtual server running Raspbian on a Raspberry PI. I read a lot of documentation and investigated with no results. I have a lot of configuration in the server like SSH access, apache2, mysq

Can't get virtual host to work

Clequis I have 3 drupal websites working on my local developer Ubuntu 14.04. I'm having trouble getting the second and third person to work, and when they do, they seem to be lucky. Those 3 took me a long time, but now I need the fourth and I can't get it to w

I can't get the virtual host to work

Jordi Huertas I am a Linux newbie and web developer. I'm configuring a virtual server running Raspbian on a Raspberry PI. I read a lot of documentation and investigated with no results. I have a lot of configuration in the server like SSH access, apache2, mysq

On a virtual machine, how can I access the host by name?

Ellopio I have a KVM/QEMU virtual machine created in Virtual Machine Manager. On this machine, I can ping the host by IP, but not by hostname: elopio@ubuntu-xenial:~$ ping 192.168.2.207 PING 192.168.2.207 (192.168.2.207) 56(84) bytes of data. 64 bytes from 192

On a virtual machine, how can I access the host by name?

Ellopio I have a KVM/QEMU virtual machine created in Virtual Machine Manager. On this machine, I can ping the host by IP, but not by hostname: elopio@ubuntu-xenial:~$ ping 192.168.2.207 PING 192.168.2.207 (192.168.2.207) 56(84) bytes of data. 64 bytes from 192

On a virtual machine, how can I access the host by name?

Ellopio I have a KVM/QEMU virtual machine created in Virtual Machine Manager. On this machine, I can ping the host by IP, but not by hostname: elopio@ubuntu-xenial:~$ ping 192.168.2.207 PING 192.168.2.207 (192.168.2.207) 56(84) bytes of data. 64 bytes from 192

Ubuntu virtual host can't connect to MS-SQL Server

Sajan Maharjan Scenario: Run laravel to connect to sql server. When running the app from the terminal, it connects and works fine. (using php artisan service) However, when it is placed in a virtual host (test.zzz.com), it fails to connect and doesn't even sho

Ubuntu virtual host can't connect to MS-SQL Server

Sajan Maharjan Scenario: Run laravel to connect to sql server. When running the app from the terminal, it connects and works fine. (using php artisan service) However, when it is placed in a virtual host (test.zzz.com), it fails to connect and doesn't even sho

Access NGINX virtual host in LAN

Ivan I want to access a virtual host on a development workstation (Arch Linux) from a mobile device or tablet connected in the same network. My nginx.conf virtual host spec looks like this: http { include mime.types; default_type application/octet-stream; sen

Access the virtual machine from the host

Ubaid Ahmed My host's OS is Windows and I'm using Oracle Virtual box . I have 3 virtual machines: Kali Linux , Metasploitable and Windows 10 . Question 1: I host a website in Metasploitable. If I use NAT network, I can access the site using IP in Kali Linux an

Access NGINX virtual host in LAN

Ivan I want to access a virtual host on a development workstation (Arch Linux) from a mobile device or tablet connected in the same network. My nginx.conf virtual host spec looks like this: http { include mime.types; default_type application/octet-stream; sen

Access NGINX virtual host in LAN

Ivan I want to access a virtual host on a development workstation (Arch Linux) from a mobile device or tablet connected in the same network. My nginx.conf virtual host spec looks like this: http { include mime.types; default_type application/octet-stream; sen

Access NGINX virtual host in LAN

Ivan I want to access a virtual host on a development workstation (Arch Linux) from a mobile device or tablet connected in the same network. My nginx.conf virtual host spec looks like this: http { include mime.types; default_type application/octet-stream; sen

from remote access virtual host?

Lord 3d I have a Linux (debian7), I run many different virtual hosts (for all my projects) - apache2, I usually use my dev server to test new features via mobile (for mobile), but it takes a long time time. How to set up a configuration on Linux so that the vi

Access the virtual machine from the host

Ubaid Ahmed My host's OS is Windows and I'm using Oracle Virtual box . I have 3 virtual machines: Kali Linux , Metasploitable and Windows 10 . Question 1: I host a website in Metasploitable. If I use NAT network, I can access the site using IP in Kali Linux an

Access NGINX virtual host in LAN

Ivan I want to access a virtual host on a development workstation (Arch Linux) from a mobile device or tablet connected in the same network. My nginx.conf virtual host spec looks like this: http { include mime.types; default_type application/octet-stream; sen

Access NGINX virtual host in LAN

Ivan I want to access a virtual host on a development workstation (Arch Linux) from a mobile device or tablet connected in the same network. My nginx.conf virtual host spec looks like this: http { include mime.types; default_type application/octet-stream; sen

Access the virtual machine from the host

Ubaid Ahmed My host's OS is Windows and I'm using Oracle Virtual box . I have 3 virtual machines: Kali Linux , Metasploitable and Windows 10 . Question 1: I host a website in Metasploitable. If I use NAT network, I can access the site using IP in Kali Linux an

Can't ping but can access website virtual machine

jackhammer013 I'm using a vps using Microsoft Azure, and have a Linux Ubuntu Server installed, basically a stack of light bulbs. The URL is http://jflorescadev.cloudapp.net/, and its public IP is 23.97.56.207. If I put them both on the browser, I can access it

Can't ping but can access website virtual machine

jackhammer013 I'm using a vps using Microsoft Azure, and have a Linux Ubuntu Server installed, basically a stack of light bulbs. The URL is http://jflorescadev.cloudapp.net/, and its public IP is 23.97.56.207. If I put them both on the browser, I can access it

Can't ping but can access website virtual machine

jackhammer013 I'm using a vps using Microsoft Azure, and have a Linux Ubuntu Server installed, basically a stack of light bulbs. The URL is http://jflorescadev.cloudapp.net/, and its public IP is 23.97.56.207. If I put them both on the browser, I can access it

Can't ping but can access website virtual machine

jackhammer013 I'm using a vps using Microsoft Azure, and have a Linux Ubuntu Server installed, basically a stack of light bulbs. The URL is http://jflorescadev.cloudapp.net/, and its public IP is 23.97.56.207. If I put them both on the browser, I can access it