Use http://example-local.com to see a local Web site
|
|
Hello, I have installed mampstack 1.O beta4 on Leopard. I can see my local Web sites using http://127.0.0.1:8080 On http://127.0.0.1:8080/Live/example.com/, I have the copy of my website http://example.com I would like to use http://example-local.com on my personal computer to see http://127.0.0.1:8080/Live/example.com/ How can I do ? On /etc/hosts I added the line 127.0.0.1 example-local.com So now http://example-local.com:8080 show the same content as http://127.0.0.1:8080 But I don’t want to see http://127.0.0.1:8080, I want http://127.0.0.1:8080/Live/example.com/ So I added this code on apache2.conf : </virtualhost> But after restarting apache, it’s always http://127.0.0.1:8080 displayed :/ May you help me ? Thanks |
|
|
Hi, A really easy solution is to create a redirection page in the main location. Try the following: Go to apache2/htdocs and move index.html to index-backup.html. Then create the following index.html file:
I hope it helps! |
|
|
Finally I used on httpd-vhosts.conf :
And it works. |
|
|
I’m glad to hear this! Thanks for posting the solution, I’m sure that will help to other BitNami users. |

