Apache does not accept "WWW" domains
Posted by: geabenitez (---.amnetsal.com)
Date: November 05, 2016 01:29AM

Hello, i have the following problem:

I have configured wamp server, and I have 1 website hosted on it, i have enabled port 80 on my router and firewall and when using the domain [mywebsite.com] from a coputer outside my network, the website shows correctly, but when using [www.mywebsite.com] it says

You don't have permission to access / on this server.

I appreciate the hep you can provide on this matter.

Regards.

Options: ReplyQuote
Re: Apache does not accept "WWW" domains
Posted by: Otomatic (Moderator)
Date: November 05, 2016 09:36AM

Hi,

In the VirtualHost of 'mywebsite.com', you add:
ServerAlias www.mywebsite.com
See: The need for Virtual Host

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

Options: ReplyQuote
Re: Apache does not accept "WWW" domains
Posted by: geabenitez (190.87.106.---)
Date: November 06, 2016 05:19AM

Awesome! Thank you very much for your help. It worked

Options: ReplyQuote


Sorry, only registered users may post in this forum.