Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Host two pages on one server |
|
Author |
|
osiel
Joined: 18 Oct 2023 Posts: 2 Location: Mexico
|
Posted: Wed 18 Oct '23 8:15 Post subject: Host two pages on one server |
|
|
Hello.
I'm new on apache and html code, etc..
I'm currently hosting a webpage in an old laptop with windows 7 from my house through noip dns.
but I want to host two different webpages on the same laptop.
Currently modified the httpd-vhost.conf with the root host on the default folder (htdocs) in the port 80 and another virtual host in the port 8080.
Testing it just works once, I go to my public ip:80 and redirect me to the default page then go to my ip:8080 goes to my another page. but then I refresh and it redirects me to the default page.
Am I going the right way?
Any help is appreciated . Thanks
Osiel |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
osiel
Joined: 18 Oct 2023 Posts: 2 Location: Mexico
|
Posted: Wed 18 Oct '23 18:36 Post subject: |
|
|
I've tried that already, looks like modifying the vhost file doesn't make any change at all.
Also don't know the directories structure, I've put them inside the Apache folder and outside, still the same result.
And I think it is only for local, or I could access through outside? |
|
Back to top |
|
|
|
|
|
|