Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question for those of you serving web pages from OSX...
#1
I'm trying to setup a virtual host through Apache.

I have domain.com go to /website
I'd like to have subdomain.domain.com go to /other_website.

Clearly, that's not working for me.

The virtual host lines that I've got in httpd.conf:


DocumentRoot /Domain/
ServerName domain.com



DocumentRoot /dcq4/
ServerAlias documentq4.domain.com



Currently, with those lines, domain.com is going to /dcq4 instead of /Domain too.


TiA!
Reply
#2
I don't have an answer for you, but have suggestions of two other sites where you might have luck:

http://www.entropy.ch/phpbb2/

and

http://discussions.apple.com/category.js...goryID=160

good luck. Let us know if you figure something out--this is something I've wondered about in the past, but haven't taken the time to research yet.
Reply
#3
kind of off topic, but whats the advantage to this over just paying someone $5 a month to be your host?

i mean, ive got 100 gigs of storage, 10 domains, and pretty much unlimited everything else, and it took 10 minutes to setup with no real knowledge

is there something else this does?
Reply
#4
It allows me to host it on my terms.


I could pay money, but for the piddly stuff I'm doing right now, I'd just rather have it locally. I have practically no web traffic to my site. I just want to setup a subdomain so that I can access the site I'm developing offsite.
Reply
#5
I suspect you need ServerName not ServerAlias but I haven't lookd at ths stuff for ages.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)