Virtual hosts question
Posted by: meddiecap (---.routit.net)
Date: August 11, 2015 05:21PM

Hi,

I have set up my virtual hosts in httpd-vhosts.conf as follows:

<VirtualHost *:80>
ServerName my-site.local
DocumentRoot "I:/projects/my-site/public_html"
<Directory "I:/projects/my-site/public_html">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

Is there a way to remove the part below and still have the .access working (and other stuff i dont know about winking smiley. In a previous installation I had it set up without this.

<Directory "I:/projects/my-site/public_html">
AllowOverride All
Require all granted
</Directory>

There are probably security issues, but i'm using this only on my own pc and not on a live server or something like that.

Thanks in advance!

Options: ReplyQuote
Re: Virtual hosts question
Posted by: RiggsFolly (---.as43234.net)
Date: August 11, 2015 05:39PM

Hello,


No

And by the way you also need a Virtual Host defined for localhost. see [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


Sorry, only registered users may post in this forum.