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: Two websites with virtual host using dynamic dns
Author
QuantumGuy



Joined: 04 Apr 2022
Posts: 1
Location: Canada, Toronto

PostPosted: Mon 04 Apr '22 15:24    Post subject: Two websites with virtual host using dynamic dns Reply with quote

Apache2 version 2.4.29
OS: Linux Peppermint


Greetings,

My name is Kevin and I new to the forums.

Fair warning, I'm a newbie to Apache and Linux.

But I am trying to setup two websites on this machine with Apache but also use dynamic dns.


I've searched on Google but the instructions are difficult for me to understand but also I don't see a good resource or instructions on virtual host of two websites and using dynamic dns.

Could anyone point me in the right direction in terms of webpages or videos that give easy instructions?

Or better yet, if anyone can help guide me that would be great.

I do have one website setup currently with the easy method/not virtual host. Not sure what this is called.
But it is setup so either with www and without www works.


Eventually, I would love to get advice on how to setup a landing page where I can collect email address from people who want to sign up for a newsletter/further information on my environmental charitable startup.


Thanks for reading this!
Have a great new week.

Be well Smile

Best,
Kevin H.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 06 Apr '22 12:26    Post subject: Reply with quote

The short answer is to use vhosts with the DNS name in them. A short example can be found at https://gist.github.com/JBlond/3d58a1a2e66ce0e42413d9015377a72c

if you still have a question please ask again.
Back to top


Reply to topic   Topic: Two websites with virtual host using dynamic dns View previous topic :: View next topic
Post new topic   Forum Index -> Apache