-
Apr 16th, 2024, 11:34 AM
#1
Thread Starter
Fanatic Member
There is any way for config virtual host on wamp to open my site like as aaa.com?
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 on virtual host settings in wamp :
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??
Point one: some fools still do not know the reason why cracked software should be used, companies or people who serve the terrorist or Zionist current must be fought, the current era is the era of soft war (the war of ideology and the battle of thoughts) is more important than hard war.
Point two: foolish thanks are worthless, I am here to shout out the faults so that they will be upset and stop their foolish pride, if you consider yourself strong, stop the death you are heading towards.
point third: some people or countries in the apocalypse era are just spectators, these are the most worthless creatures.
Point Four: NSA is one of the largest spy centers in the world : )) .
Point Five : Age is just a number, sometimes old people are stupider than young people.
-
Apr 16th, 2024, 08:29 PM
#2
Re: There is any way for config virtual host on wamp to open my site like as aaa.com?
Up front, I know zero about wamp. But if you are on your phone and wanting your phone to be able to access your PC via a domain name of www.aaa.com, then that sounds like a DNS issue to me.
Not going to go down the rabbit hole of different suggestions based on all the possible different permutations of how your LAN is set up, or if you are even using local DNS or not.
Bottom line, it might be complicated, it might be easy, it might not be possible with your current setup. I will offer no further follow-up to this post. Good luck.
-
Apr 17th, 2024, 09:09 AM
#3
Re: There is any way for config virtual host on wamp to open my site like as aaa.com?
Maybe you can set your host file to auto redirect?
See here:
https://superuser.com/questions/4875...pache-and-wamp
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Apr 17th, 2024, 01:45 PM
#4
Thread Starter
Fanatic Member
Re: There is any way for config virtual host on wamp to open my site like as aaa.com?
A few minutes after I asked my question here, I found a part of the answer here :
wamp - how to open live website on same computer if virtual host has same name - Stack Overflow
i just added these lines in C:\windows\system32\drivers\etc\hosts :
Code:
127.0.0.1 aaa.com
::1 aaa.com
and then in httpd-vhosts.conf i added :
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>
now i can test my site on windows like as aaa.com nice, but another part (question 2) still remains, and that is that I want to test the website address on the mobile phone when it is connected to WAMP like as aaa.com :
Notic : there is no need any interent connection because its connected to wamp as its work nice on windows but i just stuck on mobile now.
Point one: some fools still do not know the reason why cracked software should be used, companies or people who serve the terrorist or Zionist current must be fought, the current era is the era of soft war (the war of ideology and the battle of thoughts) is more important than hard war.
Point two: foolish thanks are worthless, I am here to shout out the faults so that they will be upset and stop their foolish pride, if you consider yourself strong, stop the death you are heading towards.
point third: some people or countries in the apocalypse era are just spectators, these are the most worthless creatures.
Point Four: NSA is one of the largest spy centers in the world : )) .
Point Five : Age is just a number, sometimes old people are stupider than young people.
-
Dec 14th, 2024, 02:32 AM
#5
Junior Member
Re: There is any way for config virtual host on wamp to open my site like as aaa.com?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|