Apache Web Server version 2.0 [Archive] - SpeedGuide.net Broadband Community

View Full Version : Apache Web Server version 2.0


dj_tigger1982
02-08-03, 02:20 PM
I don't know if any one can help on this but if not it's kewl, but i you can please help......

I have apache web server running on my PC and i currently host one web page, and i use NO-IP to do a dns resolution on the ip address.

What i need to do is host 2+ web pages on the same PC and use NO-IP to create the addresses.

Is there a way on apache web server to allow it to look at the incomming address and then send that to a specific folder where the pages are located.

Example at the moment i have to web pages running one is called http://fubarband.no-ip.com <<< this one is located in the root of the http docs folder in the apache folder.

I then also have another which is called http://sangatte.no-ip.com/mike/home.html << this one is located in a folder as you can tell that runs off from the root..

What I want to do is instead of typing the above with the folder path, is to just type http://sangatte.no-ip.com. From there then allow apache to know that, that adddress points to the /mike folder.

If this can't be done in apache can some one recomend another web server that is simple and easy to use and please do not say IIS.


Cheers in Advance.:D :D

BOWTYE8
02-11-03, 02:16 PM
Hi DJ,
Actaully with IIS its easy. I have been running IIS for a few years;) Just tried to switch over to apache 2.0 to allow more connections.

Sorry. With apache 2.0 this is as far as I was setting up. I had my main site and directory browsing setup but then I also have a few alias's setup .eg(http:mysite.com and http:mysite.com/2ndsite)

I cant seem to get the second site running. Typing that in will jsut give me directory browsing. I tried to set the default page to view .. Apache with no GUI I feel is somewhat harder to setup.

There is supposed to be a GUI for apache 2 at http://www.comanche.org/ link does not seem to work well.
http://www.apache-gui.com/conf.html This one seems decent.

Please post any findings of you own also.
Thanks
Dennis

cyberskye
02-11-03, 03:33 PM
DJ - Apache (both 1.3x and 2.0) fully support virtual domains. This can be name based or ip based. The latter requires several NICs. Name based is possible because under HTTP 1.1 standards, the url is passed to the httpserver. Apache will parse the request and return the correct resource. Just keep everything in separate folders (1 per site)

I currently have 4 sites running under a single instance of apache 1.37. You can supply a separate docroot for each VD.

http://httpd.apache.org/docs-2.0/vhosts/

Give it a shot. If you have problems, PM me and you can send me your httpd.conf.


Skye

Bowtiw8 (sorry I misread your name before :)) - shame on you pointing someone to the swiss cheese of webservers :p :)

cyberskye
02-11-03, 03:40 PM
Bowtie8 - I see the problem. You had put "2nd sites" docroot within "1st site's" docroot. This isn't virtual serving, as a folder can be part of a URL but is not part of FQDN so folks can't find anything after the .com via dns, they wait for the server to resolve that.

Instead you set up http://www.mysite.com and http://www.mysecondsite.com. Each can be handled completely independantly.

If you only own one domain then you could use http://www.mysite.com and http://secondsite.mysite.com (if you do this, be careful to check your dns aliases as many registrars have things like "*.domain.com aliased to domain.com. Same story, though, you can have two completely indepenedant sites running. Just need to change the host name rather than the folder.

Skye

cyberskye
02-11-03, 03:46 PM
What I want to do is instead of typing the above with the folder path, is to just type http://sangatte.no-ip.com. From there then allow apache to know that, that adddress points to the /mike folder

This is easy, too. Set your docroot to the appropriate folder. You can use the mod_alias directive to accomplish this (or mod_rewrite but that is a real beast).

Go to that apache site and look up mod_alias.

When you're working with VD's just remember to keep close eye on your context - some things belong in the global area and some are specific to a particular VD.

Skye

dj_tigger1982
02-12-03, 05:30 AM
ok guys i will try using IIS, cheers

cyberskye
02-12-03, 09:42 AM
Boo!

Stef - we lost another one to the dark side :(

BOWTYE8
02-12-03, 05:45 PM
Cyber,

Dont count me out yet!! I am still trying to get setup with apache 2.0 :D

Bowtye

cyberskye
02-12-03, 05:50 PM
:)

I've done it a bunch. Let me know if I can help.

Skye