Would this create problems?
Posted by: sTimulated (---.plus.com)
Date: August 23, 2015 11:15PM

I've had to alter my httpd.conf virtualhosts like this.......

<VirtualHost *:80>
DocumentRoot "c:/wamp/www/stg2142"
ServerName localhost
ErrorLog C:/wamp/www/stg2142/logs/error.log
CustomLog C:/wamp/www/stg2142/logs/access.log common
<Directory "c:/wamp/www/stg2142">
AllowOverride All
Order Allow,Deny
Allow from 127.0.0.1 localhost
</Directory>
</VirtualHost>

Nothing seems broken,all my websites work.
Only thing I see is that localhost/127.0.0.1 goes to the stg2142 website and NOT to listing my sites.

My 2142 stats stuff only seems to work when it's like this.
Not sure if I can fix that or do something in wamp?

If it's not going to cause a problem then I'll leave it.

Options: ReplyQuote
Re: Would this create problems?
Posted by: Otomatic (Moderator)
Date: August 24, 2015 10:35AM

Hi,

- 1 - READ BEFORE YOU ASK A QUESTION
- 2 - The need for Virtual Host
With - 2 - you will see how to create VirtualHosts

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



Edited 1 time(s). Last edit at 08/26/2015 06:09PM by Otomatic.

Options: ReplyQuote
Re: Would this create problems?
Posted by: sTimulated (---.plus.com)
Date: August 26, 2015 05:38PM

I have virtualhosts smiling smiley

I just wonder if changing wamps 'root' from www to stg2142 will cause any problems?
So far there seems to be no problems.

I have 3 websites,all working ok.

Options: ReplyQuote
Re: Would this create problems?
Posted by: Otomatic (Moderator)
Date: August 26, 2015 06:15PM

Hi,

If you modifiy http.conf to add a VirtualHost as you mention in your first message, it is not the correct solution.

For Apache 2.4, it is not
Order Allow,Deny
Allow from 127.0.0.1 localhost
but
Require local
Re-read The need for Virtual Host

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

Options: ReplyQuote
Re: Would this create problems?
Posted by: sTimulated (---.plus.com)
Date: August 31, 2015 03:35AM

Win7U x64
2.2
2.0.63
5.3.4
5.5.24
Green

Options: ReplyQuote
Re: Would this create problems?
Posted by: sTimulated (---.plus.com)
Date: September 07, 2015 09:39PM

Otomatic Wrote:
-------------------------------------------------------
> Hi,
>
> If you modifiy http.conf to add a VirtualHost as
> you mention in your first message, it is not the
> correct solution.
>
> For Apache 2.4, it is not
Order Allow,Deny
> Allow from 127.0.0.1 localhost
> but
Require local
> Re-read
> [url=http://forum.wampserver.com/read.php?2,127757
> ]The need for Virtual Host[/url]

My apache is 2.0.63

Options: ReplyQuote


Sorry, only registered users may post in this forum.