virtualhost for intranet
Posted by: GuillaumeC (---.fbx.proxad.net)
Date: January 30, 2021 05:41PM

Hello,
I'm currently making a web site on my wamp, and I want to test the responsive css for this one.
I try to acces, with my phone, on my network (LAN, wifi both can se together), but I have 403 error with my phone.
The same for another PC.

Here is my configuration for wampserver host :Win7, wamp 3.2.0, apache 2.4.41.
While searching, I've seen that is in hhtpd-vhosts.conf that I may change values. When I change for localhost, it works (accessing via [ipadress] ). But it not allowed, I've undestood.

So, I try this :

<VirtualHost *:80>
ServerName gestion-photos
DocumentRoot "c:/wamp/www/gestdia"
<Directory "c:/wamp/www/gestdia/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

But it doesn't work at all (still 403 error).
And I don't know, from my phone, or another wich URL call.

Where am I wrong ?

Thanks for help.
Best regards,
Guillaume

Options: ReplyQuote
Re: virtualhost for intranet
Posted by: RiggsFolly (Moderator)
Date: January 31, 2021 08:13PM

I have covered this on Stackoverflow

---------------------------------------------------------------------------------------------
(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
Re: virtualhost for intranet
Posted by: GuillaumeC (---.fbx.proxad.net)
Date: January 31, 2021 10:56PM

Hi,
thank you for your answer.
I was thinking about a narow solution, but I don't know all about apache config, and missed httpd.conf for listening ports.
Thanks for help.
Kind regards
Guillaume

Options: ReplyQuote
Re: virtualhost for intranet
Posted by: Otomatic (Moderator)
Date: February 01, 2021 08:57AM

Hi,

With Wampserver, you must add a listen port by:

Right-Click -> Tools -> Add a Listen Port to Apache

Then you can create your VirtualHost with the Add a VirtualHost page.

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

Options: ReplyQuote
Re: virtualhost for intranet
Posted by: GuillaumeC (---.fbx.proxad.net)
Date: February 01, 2021 09:57AM

Hi,
thanks for help, it's work !

Options: ReplyQuote


Sorry, only registered users may post in this forum.