Virtual host not working other then 80 for localhost
Posted by: padmaniyogesh (144.36.230.---)
Date: April 28, 2016 01:43PM

My local environment run on port number : 8080

Vhost
<VirtualHost *:8080>
DocumentRoot "c:/wamp/www"
ServerName localhost
</VirtualHost>


Window C:\Windows\System32\drivers\etc\host
127.0.0.1 localhost

When i try to access [localhost]
Not Found

HTTP Error 404. The requested resource is not found.

But same is working for port 80.

Options: ReplyQuote
Re: Virtual host not working other then 80 for localhost
Posted by: RiggsFolly (Moderator)
Date: April 28, 2016 02:00PM

Hello,

Please read this post on how to configure Virtual Hosts correctly [forum.wampserver.com]

Alternatively you can read the Apache manual, see my signature below for a link to that.

If after that you are still having problems please answer ALL these questions so we know what versions of software you are using [forum.wampserver.com]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Virtual host not working other then 80 for localhost
Posted by: Otomatic (Moderator)
Date: April 28, 2016 03:37PM

Hi,

> My local environment run on port number : 8080
Why ?

Port 80 is the port number devoted to the HTTP protocol.
You use (hhtp://google.com/) and not (http://google.com:8080/)
If another application uses port 80, it is this application that must change port, not HTTP.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.