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: How do I set up virtual subdomains?
Author
jasontheadams



Joined: 09 Feb 2014
Posts: 9
Location: United States, Detroit

PostPosted: Mon 10 Feb '14 19:23    Post subject: How do I set up virtual subdomains? Reply with quote

I'm using the following vhost script: http://pastebin.com/rb8BPKh6

This used to work on an older version of apache in Windows. Now I'm running Apache 2.4.6 on Ubuntu 12.04.

When I type in, for example, dhae.papertower.dev, it processes some scripts internally and moves me to www.dhae.papertower.dev.. and breaks. When I check my log, I find that it's trying to go to the /var/www/papertower/www directory. When I look at my config this makes sense, but I'm not sure how to fix this.

I tried adding www.*.papertower.dev to the ServerAlias, but that didn't do it.

Any ideas, please?
Back to top
James Blond
Moderator


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

PostPosted: Mon 10 Feb '14 23:36    Post subject: Reply with quote

See the last post in http://www.apachelounge.com/viewtopic.php?p=24139 for an example config.

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


Reply to topic   Topic: How do I set up virtual subdomains? View previous topic :: View next topic
Post new topic   Forum Index -> Apache