logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Can you create a dynamic server alias?
Author
Sonix



Joined: 10 Oct 2011
Posts: 1
Location: Ireland

PostPosted: Mon 10 Oct '11 20:45    Post subject: Can you create a dynamic server alias? Reply with quote

Hi Guys, My very first post.

I'm gonna refer to a linux server but you guys seem to know your stuff and I'm sure the configuration will be similar.

Just to start I'm just about keeping my head above water due to a steep learning curve learning linux and apache configuation. I've never had to do it before so I'm taking baby steps and learning off forums.

In work I needed to have one server serving the same files to multiple domains. After plenty of research I got a vps server and read up that setting up the vhost.conf.

The vhost.conf currently goes like so:
ServerAlias domain.com www.domain.com domain2.com www.domain2.com domain3.com www.domain3.com

This method worked for me and since my knowledge is limited, why fix what isn't broke.

I'm coming back to this again and I'm looking to point around 40 names at this server. So my vhost.conf file is going to become very messy and I know that im probably not doing this correctly.

Is there a way to dynamicaly config the server that it know's how to deal with domains being pointed at it without me having to list them the way I'm doing it?

Hope this is clear enough and thanks for any help.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7304
Location: Germany, Next to Hamburg

PostPosted: Thu 13 Oct '11 14:46    Post subject: Reply with quote

There is a tutorial in the docs.

http://httpd.apache.org/docs/2.2/vhosts/mass.html


if you still have a question please ask again
Back to top


Reply to topic   Topic: Can you create a dynamic server alias? View previous topic :: View next topic
Post new topic   Forum Index -> Apache