Computing.Net > Forums > Linux > Setup Apache Web Server

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Setup Apache Web Server

Reply to Message Icon

Name: KBB
Date: March 11, 2004 at 17:58:53 Pacific
OS: Linux 9.0
CPU/Ram: 850 MHz/1 GHz
Comment:

The solution probably has been posted but I cannot find
it. I would like to setup a web server using Apache. I
have a domain registered and I want to host it and host
several virtual domains. Anyone know where I can find
some step by step instructions on both issues? (using
apache to host my website, and setup virtual domains)

Thanks
KBB



Sponsored Link
Ads by Google

Response Number 1
Name: charlie1130s
Date: March 12, 2004 at 06:00:31 Pacific
Reply:

Try this web site
http://home.edo.uni-dortmund.de/~chripo/install/step01.html


0

Response Number 2
Name: socrazy143
Date: March 21, 2004 at 17:02:27 Pacific
Reply:

The best place to start is Apache.org but the manual can be a little deep. Go on over to http://www.apachefreaks.com and go to their forum. For now I will give you a simple tutorial that should get you up and running.

First and foremost you must have your domain name pointed at your IP address. You can do this by either doing it from the company that you registered with or setting up your own domain name server. If you have never messed with DNS before do it through your registrar and save the hassle. This also assumes that you have a static IP address. The other assumption I am making is that you are using Linux to run the webserver. If you are not do yourself a favor and switch to Linux otherwise sign-up with a webhost that offers a decent reseller program for your vhosting. Now on to the tutorial.

Open up your favorite text editor and go to /etc/httpd/conf/httpd.conf. This is your Apache configuration file and it will control what goes on with Apache. Find the following line:

ServerName <your static IP address:80>
Ex.
ServerName 63.239.89.174:80

You will notice the file has a ton of notes that direct what to configure and such. As you learn more about Apache you can tweak the file to your liking. For now we will do a basic setup.

Move to the following line and make sure it looks like this:

Listening 80
and
ServerAdmin you@youremail.com #obviously you need to put your email address in here.

Now to the Virtual Hosting section which is located at the bottom of the file.

NameVirtualHost *:80

<VirtualHost *:80>
ServerName yourdomain.com
ServerAlias www.yourdomain.com
ServerAdmin you@yourdomain.com
DocumentRoot /var/www/html
</VirtualHost>

<VirtualHost *:80>
ServerName anotherdomain.com
ServerAlias www.anotherdomain.com
ServerAdmin somebody@anotherdomain.com
DocumentRoot /var/www/html/anotherdomain
</VirtualHost>

You can add as many as you want but I will stop here.

If you do not have a static IP don't worry. Services like no-ip.com and dyn-dns.com cater to folks like you. If all else fails email me.

~Chris
http://www.comsyst.net


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Setup Apache Web Server

Web Server [ apache ] www.computing.net/answers/linux/web-server-apache-/22724.html

Apache Web server problem, thanks www.computing.net/answers/linux/apache-web-server-problem-thanks/17141.html

Apache web server www.computing.net/answers/linux/apache-web-server/26514.html