Change of WWW folder doesn't work
Posted by: Evair_Peterson (---.99.127.dynamic.adsl.gvt.net.br)
Date: May 10, 2017 01:49AM

Hi there.


I have a trouble with my wamp configuration. I want to change my www folder to another. I've done it another time editing my http.conf and it works properly. This is what I'm changing:

DocumentRoot "${INSTALL_DIR}/www" ----- DocumentRoot "F:/03)_SERVICOS/00)_Sites"
<Directory "${INSTALL_DIR}/www/"> ------ <Directory "F:/03)_SERVICOS/00)_Sites/">

I try do it in httpd.conf who is in C:\wamp64\bin\apache\apache2.4.23\conf


I just tryed too change the httpd-vhosts.conf in C:\wamp64\bin\apache\apache2.4.23\conf\extra:
DocumentRoot c:/wamp64/www ------ DocumentRoot F:/03)_SERVICOS/00)_Sites
<Directory "c:/wamp64/www/"> ----- <Directory "F:/03)_SERVICOS/00)_Sites/">


I've checked and the port 80 is working properly too.

When I make any of this changes, wamp don't give me no errors, and your logo in system tray still working green after reboot the all wamp services. But localhost still working in the original folder (C:\wamp64\www).



What is happening? Have you any idea for clear this mistake?
I have downloaded the last version of wamp server "WAMPSERVER 64 BITS (X64) 3.0.6", and I'm working on Windows 10 Pro x64.


Thank you for your atention.
Brazilian greetings. Evair.

Options: ReplyQuote
Re: Change of WWW folder doesn't work
Posted by: Otomatic (Moderator)
Date: May 10, 2017 09:20AM

Hi,

The location of the wamp64/www/ folder should NEVER be changed.
Use VirtulaHost which allows you to place your local sites anywhere on your disk.
See The need for Virtual Host

It is also well noted, in the httpd.conf file:
# Apache variable names used by Apache conf files:
# The names and contents of variables:
# APACHE24, VERSION_APACHE, INSTALL_DIR, APACHE_DIR
# should never be changed.

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



Edited 1 time(s). Last edit at 05/10/2017 10:27AM by Otomatic.

Options: ReplyQuote


Sorry, only registered users may post in this forum.