• We had to restore from a backup today after a failed software update. Backup was from 0000 EDT and restored it at 0800 EDT so we lost about 8hrs. Today is 07/20/2024. More info here.

Solved There is any way for config virtual host on wamp to open my site like as aaa.com?

Solved issue

persi

New Member
Joined
Apr 2, 2024
Messages
3
Reaction score
2
Credits
41
Hello, I have two questions:
I wana test my website offline on pc using wamp and mobile connected to wamp , so my questions :

1- I want to open my website for testing with the internet address of aaa.com, I was able to get a test in the form of www.aaa.com with the following method:
Code:
<VirtualHost *:80>
    ServerName www.aaa.com
    DocumentRoot "h:/html/new/code"
    <Directory  "h:/html/new/code/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

But if I want to open the site in the form of aaa.com, it does not work for me with the following method:
Code:
<VirtualHost *:80>
    ServerName aaa.com
    DocumentRoot "h:/html/new/code"
    <Directory  "h:/html/new/code/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

How Can Solve this problem ?


2- I test my site offline on the computer with the address www.aaa.com and there is no problem, but when I want to test it on a mobile phone this address does not open . Is there a way for me to test it with www.aaa.com or aaa.com not like as localhost/aaa
 
Last edited:


You mention WAMP. That's Windows. This is a Linux site.
 

Members online


Top