PDA

View Full Version : [ubuntu] 2nd website w/ subdomain and dyndns


Mykle87
August 1st, 2009, 10:02 PM
I want to host a website for a friend on my machine as a subdomain of my dyndns (friend.mydyndns.com). I have LAMP and dyndns installed. When I test apache on my lan, I see "it works!" I created a site in sites-available and linked it. Here is what the file looks like:

<VirtualHost *:80>
ServerName friend
ServerAlias friend.localhost
DocumentRoot /home/friend/www


When I go to friend.local IP address, nothing happens. What am I missing? Also, will this work with my dyndns? Thanks.

jamesrfla
August 1st, 2009, 11:13 PM
It should work with DynDNS. I never had to play around with Virtual Hosts when I setup my server and used DynDNS. Did you try port forwarding port 80 in your router? Some ISP's don't even allow you to host web servers.

Thirtysixway
August 2nd, 2009, 02:18 AM
..can you have subdomains on IP addresses?

jamesrfla
August 2nd, 2009, 02:20 AM
..can you have subdomains on IP addresses?

Yeah I believe so. I have a sub domain routed to a IP address.

Mykle87
August 2nd, 2009, 09:29 AM
I have the first website working which is the default apache2 page. All I want is for the 2nd site to have the address friend.mydyndns.com. Is this possible?

cmwslw
August 2nd, 2009, 10:04 AM
I had trouble with this when I was beginning with a server. Once I figured it out I wrote up a guide:
Apache subdomains with DynDNS or No-IP (http://me.clustur.com/node/24). I really hope this helps you :)

-Cory

Mykle87
August 2nd, 2009, 10:14 AM
It looks like wildcards is a pay-for option with DynDNS. Looks like I'll have to go back to the drawing board.

How about this situation:
I use my dyndns to access my server functions (sftp, transmission, subversion) from the internet. What if I buy a domain name from GoDaddy and use that for just a website on the same server? Is that possible?

Mykle87
August 2nd, 2009, 11:39 AM
When I type my server's hostname (which is "server" on my lan) in firefox, I see the default webpage. I cannot figure out how to even host another separate website. Any help is greatly appreciated.

jamesrfla
August 2nd, 2009, 01:16 PM
The guide that cmwslw provided looks like it will help. Having one of your web sites on a DynDNS and the other site on a real domain might work.

Mykle87
August 2nd, 2009, 02:02 PM
That doesn't seem to work. If anyone has the patience to walk me through this step by step, I would greatly appreciate it.

confusedstingray
August 2nd, 2009, 08:39 PM
for you want you should not need another domain just reconfigure apache to do virtualnamedhosting here is a link from apaches to explain and how to

what you do have your internet ip (via router) point to an internal ip (which is your apache machine) and setup apache from below below


http://httpd.apache.org/docs/2.0/vhosts/name-based.html