logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Host two pages on one server
Author
osiel



Joined: 18 Oct 2023
Posts: 2
Location: Mexico

PostPosted: Wed 18 Oct '23 8:15    Post subject: Host two pages on one server Reply with quote

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: 7294
Location: Germany, Next to Hamburg

PostPosted: Wed 18 Oct '23 8:37    Post subject: Reply with quote

That is an often asked question like here https://www.apachelounge.com/viewtopic.php?t=7381

If that doesn't help you or you still have a question please ask again.
Back to top
osiel



Joined: 18 Oct 2023
Posts: 2
Location: Mexico

PostPosted: Wed 18 Oct '23 18:36    Post subject: Reply with quote

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


Reply to topic   Topic: Host two pages on one server View previous topic :: View next topic
Post new topic   Forum Index -> Apache