rootdirectory www
Posted by: mogyo2001 (---.residential.rdsnet.ro)
Date: July 21, 2025 11:52PM

Hi dear members.
I read about the virtualhost and that we may use a project folder for our work.
I didn't made a subfolder for my work, but i would like to try it ONLINE. I have noticed that in the subfolder of www root directory the projects can be hosted, but i cant get it work from the root directory. Can it be made or i'm just wasting my time.
I have wampserver 3.3.7 installed.
I know that the older version worked this way. Maybe is it still possible with this version to host from www/
Regards

Options: ReplyQuote
Re: rootdirectory www
Posted by: Otomatic (Moderator)
Date: July 22, 2025 08:47AM

Hi,

To set up a VirtualHost "online" you absolutely need :
- Fixed IP
- External DNS server

A VirtualHost can be anywhere! Even on another partition. Just enter the path in DocumentRoot and Directory

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



Edited 1 time(s). Last edit at 07/22/2025 10:54AM by Otomatic.

Options: ReplyQuote
Re: rootdirectory www
Posted by: mogyo2001 (---.residential.rdsnet.ro)
Date: July 23, 2025 10:39AM

Hi. Thanks for responding.
As i wrote, the subdirectory can be accessed from online, but i would like to be accessible the root directory www. If i try to access it says access is forbidden. I can't make it accessible from online. I have tried every settings in httpd.conf and httpd-vhost.conf but something still blocking. Maybe somebody with more experience knows some advanced settings.
Regards

Options: ReplyQuote
Re: rootdirectory www
Posted by: Otomatic (Moderator)
Date: July 23, 2025 03:27PM

Hi,

I've never tried it and I wouldn't really do it for safety reasons.

At your own risk!

- httpd.conf
<Directory />
AllowOverride none
Require all denied
</Directory>
to
<Directory />
AllowOverride all
Require all granted
</Directory>

Require local
to
Require all granted

- httpd-vhosts.conf
For <VirtualHost _default_:80>
Require local
to
Require all granted

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

Options: ReplyQuote


Sorry, only registered users may post in this forum.