OT: Sticky IPs and webservers

p@mast3rs wrote on 4/7/2005, 6:03 PM
Apparently I have been given a new sticky ip from my cable provider. I was told by them that its pretty much a static IP and that I should be able to run my own webserver. So I installed IIS on XP Pro and took my IP and tried to take a look at my index page and get prompted for a login/password immediately. Hmmm.

So heres my question, does all sticky IPs allow hosting of a web server? Im using W2k3 standard but can also use Linux if need be. Just wonder if anyone has much experience using sticky ips.

Comments

Jason_Abbott wrote on 4/7/2005, 6:15 PM
A sticky IP shouldn't directly affect your ability to run a web server. It just makes it more practical. The password prompt you saw could be because you didn't configure your IIS application to accept anonymous users. Permissions between NTFS and IIS can be tricky sometimes.

I would start with ping and tracert to make sure the IP is active then if successful, for testing purposes, set your IIS and NTFS permissions wide open. The permanence of the IP and OS shouldn't matter much.
Chienworks wrote on 4/7/2005, 6:47 PM
First off, have you determined that that is actually your current IP address? You can browse to http://www.chienworks.com/webinfo/mybrowser to find out.

How are you connecting your server to the internet? Are you using some sort of router/firewall/switch box so that you can have more than one computer connected? If so, browsing to your IP address will show the login screen for that router until you configure it for forwarding.

If you need to make some sanity checks, you can dig up an old 98SE box and activate PWS (Personal Web Server) which has no permissions or security whatsoever. Connect this computer directly to the cable modem. You should then be able to see PWS' default index page. If this works then you at least have one less variable to worry about.
Chienworks wrote on 4/7/2005, 6:49 PM
IIS doesn't use "index.html" as the default page. It uses "default.htm". Change your start page to this and it should work fine.
TheHappyFriar wrote on 4/7/2005, 6:51 PM
there are also MANY free small webserver programs out there. My friend hosts my site (and his) on a linux server. That, of course, requires a dedicated computer. :)
Jason_Abbott wrote on 4/7/2005, 6:55 PM
I see a page titled "Web Publishing Information"
p@mast3rs wrote on 4/7/2005, 6:56 PM
So another quick question, if I end up registering a domain name at go daddy or another place, do I have to set a dns name server with w2k3 to have a domain automatically resolved to the IP address?
p@mast3rs wrote on 4/7/2005, 6:59 PM
"I see a page titled "Web Publishing Information"

Excellent. That means its working. Woohoo.
Chienworks wrote on 4/7/2005, 6:59 PM
In your Godaddy.com account you'll activate "total DNS control" for that domain and set up "A" records for @ and www that contain your IP address.


If this is the only domain on your computer then you're all done and ready to go. It takes about 5 to 30 minutes for this DNS change to propogate through the 'net, so be patient before checking it.
p@mast3rs wrote on 4/7/2005, 7:04 PM
woohoo. Much thanks.

Another question and I promise no more. If run a dual boot of w2k3, will I be able to host multiple sites on my server or do I need additional IPs from my provider or is this where running dns comes into play?
jetdv wrote on 4/7/2005, 7:14 PM
Patrick, accessing the IP address worked here too.
Chienworks wrote on 4/7/2005, 7:16 PM
Dual boot won't help. In fact, if you want your website on 24/7 then dual boot is something won't even want to consider.

"Virtual domain name hosting" allows as many different domain names on one IP address as you wish. I have one IP address with about 50 domains. You will resolve all the domains to point to the same address. In Apache (the web server software that i and most of the world uses) you create entries in the server configuration file to map domain names to separate directories on the drive. I'm sure the same thing can be done in IIS, but i wouldn't know how.

Be warned that virtual domains only work with newer browsers, such as MSIE 3 or later, or Netscape 2.1 or later. Hopefully few of your visitors will be using browsers older than these. If they do, they will only see your default directory no matter which domain name they use.

You yourself most likely won't ever run your own dns server. Godaddy.com provides this service for free when you register domain names with them, so there's no reason to do it yourself.
Chienworks wrote on 4/7/2005, 7:16 PM
Go ahead ... ask another question. You know you want to! ;)
p@mast3rs wrote on 4/7/2005, 7:21 PM
Ok I want to make sure I understand this.

If I use virtual domains, lets say I have two domains abc.com and efg.com. When the user puts in one of the domains, it will resolve to my sticky ip and then my virtual domain server will route them to the default page for that domain correct?
Chienworks wrote on 4/7/2005, 7:27 PM
Correct. As i said, i don't know how this happens under IIS, but you'll have something in the config file that lists each domain name and specifies which directory contains that name's web pages.
p@mast3rs wrote on 4/7/2005, 7:28 PM
is it easy to set that up under lets say, Suse Linux?

I still havent decided what exacly I am going to host yet (a friend asked me to host for him and I have no clue what I'd be hosting.) I have flirted with the idea of doing distribution of my work with DRM and WM9 (or Nero AVC if they ever get aroudn to implementing their DRM). So for Win Media authetication, w2k3 is needed. W2k3 is nice too that if I need to, I could use Vegas on it. Straight hosting could be done on Linux but then I lose the ability to use Vegas in a pinch.
Chienworks wrote on 4/7/2005, 7:36 PM
I use RedHat instead of Suse, but chances are you'll still use Apache under Suse so it should be similar to what i've got. There's a file named /etc/httpd/conf/httpd.conf that contains the web server configuration. One of the lines is:
BindAddress 12.220.118.8
which tells the server which IP address to listen to. Then there are paragraphs further down which perform the mapping, for example:


You would repeat this for each domain name, replacing "yourdomain" with your domain name. the DocumentRoot line tells the server which directory to fetch. Generally i give the directory the same name as the domain, just to make it easier to keep track of. It's not necessary, but then again i can't think of any reason to be confusing.

Type in /etc/rc.d/init.d/httpd restart or reboot to enable the changes after entering/editing them.
p@mast3rs wrote on 4/7/2005, 7:39 PM
That is awesome. Cheno, much thanks. I totally could not get an easy answer like that on the IRC Linux channel.

Now Im excited to get started designing something.
p@mast3rs wrote on 4/7/2005, 7:52 PM
I onder how easy it is to set the same kind of thing up under w2k3 so that I still have access to Vegas and Photoshop instead of losing my computer as a 24/7 host for my friend.
Jason_Abbott wrote on 4/7/2005, 8:11 PM
In the IIS console you can right-click "Default Web Site" (or whatever you may have renamed it) and click the Advanced button next to the IP Address field, then an Add button to type in a "Host Header Name" for each domain name you want to serve.

Oh, a caveat: I think it's only the Windows products with "Server" in the name that will let you setup multiple web sites answering different IPs, ports or names. With XP Pro and such you're limited to a single web site answering a single IP/port/name configuration.
p@mast3rs wrote on 4/7/2005, 8:24 PM
Thanks Jason. Thats what I was looking for in Windows Server. I have Windows 2003 Server Std so I should be ok. Ill have to install this here in a bit to make sure everything works out fine for me. Maybe Ill piece another box together and use Linux on it so that way I dont bog down my video production box.

Either way I choose to go, at least I know its working. Thank you to everyone for their help. :0)