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.2.4 32bit & 64bit)
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.19>

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.

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.4 32 bit - Apache 2.4.46c - PHP 8.0.2…5.6.40 - MySQL 5.7.33 - MariaDB 10.5.9
Wampserver 3.2.4 64 bit - Apache 2.4.46c - PHP 8.0.2…5.6.40 - MySQL 5.7.33/8.0.23 - MariaDB 10.5.9
PhPMyadmin 5.0.4 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

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.