Maria Jeysingh Anbu
Maria Jeysingh Anbu

Reputation: 3312

XAMPP 3.2.1 Virtualhost is not working

I am using XAMPP 3.2.1 and creating new virtual host in http-vhosts.conf file in Apache the code below

<VirtualHost *:8080>
  DocumentRoot "C:/xampp/htdocs/support/srinet"
  ServerName supportcenter.sevplcorp.com
  Alias /mrpdf "E:/temp"
 <Directory "C:/xampp/htdocs/support/srinet">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order Deny,Allow
    Allow from all
    Require all granted
</Directory>

When I open supportcenter.sevplcorp.com in browser windows it shows like below

enter image description here

Upvotes: 4

Views: 835

Answers (2)

Oliver Maksimovic
Oliver Maksimovic

Reputation: 3262

Probably you haven't altered your hosts file to map the host domain to server's IP address. Assuming that you're running XAMPP on your own PC, open your editor as Administrator (notepad is sufficient), then open this file:

c:\Windows\System32\Drivers\etc\hosts

...and add this line to the bottom:

127.0.0.1 supportcenter.sevplcorp.com

Save the file and, after that, visiting supportcenter.sevplcorp.com should work. Basically, by altering the hosts file you're telling the browser (and everything else that might want to access supportcenter.sevplcorp.com) that it's actually your PC.

Upvotes: 1

You have to edit your host file located at : %WINDIR%\system32\drivers\etc\hosts. Add a newline 127.0.0.1 supportcenter.sevplcorp.com

Upvotes: 2

Related Questions