multiple sites on linux??
I have linux suse 10.0 and was wondering how to set up multiple domains on my server. i have apache 2 already set up and running. i have no idea how to set up my domain to work without nameservers either. i have it fowarding to my ip address. will that work for other domains too?
|
Are you using some free domain service? I don't think they will let you do multiple domains unless you bump up to a pay account, but I could be wrong.
To run multiple sites, you will be using the "VirtualHost" function, which is actually pretty easy to work with. Here is some information about setting it up in SuSE. |
the server is my own computer at my house. i have full access to everything. it is a brand new linux installation. i am just trying to figure out how to run more than 1 domain on my compter. I have looked up stuff about the virtualhost, but nothing seemed to work for me. i think it has to do with the nameservers....not sure though
|
Virtual hosts are the way to go. So long as the names servers point www.domain1/com and www.domain2.com to the proper IP address everything should work OK. I've set it up several times. The main thing is that you need to run name based virtual hosting instead of IP based (IP based is where each seperate site has its own IP). Can you post the virtual host section of your config file?
|
here is the profilegens.conf file in my apache vhosts.d directory
PHP Code:
|
bump,.....
|
You will need each of your virtual domain names setup in dns for it to work. For a quick test put them in the hosts file of the machine that you are trying to access them from.
|
All times are GMT -5. The time now is 08:53 PM. |