Apache2Triad Help, Support and Development Forum Index Apache2Triad Help, Support and Development
The apache2triad help , support and development forums
 

Subdomains and masochism
Click here to go to the original topic

 
       Apache2Triad Help, Support and Development Forum Index -> Hosting
View previous topic :: View next topic  
Author Message
Quicksilver



Joined: 30 Jun 2006
Posts: 1

Posted: Fri Jun 30, 2006 5:10 am    Post subject: Subdomains and masochism  

Okay, so I'm trying to set up subdomains on my server, and my frustration levels are nearing puppy-murdering levels.

First, I'm on Cox, who blocks port 80. Woohoo. So I have everything set to 8080 instead.
Second, I use No-IP.com's Plus package to monitor and change my DNS records.

So, I have read every tutorial I can find, tried every setting I could manage, yet I still cannot get subdomains to work.

Code: NameVirtualHost *:8080

<VirtualHost *:8080>
    ServerAdmin admin@localhost
    DocumentRoot C:/apache2triad/htdocs
    ServerName www.fienen.net
    ServerAlias fienen.net www.fienen.net
    ErrorLog logs/fienen.net-error_log
    CustomLog logs/fienen.net-access_log common
</VirtualHost>

<VirtualHost *:8080>
      ServerAdmin admin@localhost
      DocumentRoot c:/apache2triad/htdocs/wordpress
      ServerName blog.fienen.net
      ServerAlias blog.fienen.net
      ErrorLog logs/blog.fienen.net-error_log
      CustomLog logs/blog.fienen.net-access_log common
</VirtualHost>

<VirtualHost *:8080>
      ServerAdmin admin@localhost
      DocumentRoot c:/apache2triad/htdocs
      ServerName localhost:8080
      ErrorLog logs/localhost.com-error_log
      CustomLog logs/localhost.com-access_log common
</VirtualHost>
So far the number of results have been numerous. The root URI's appear to work, but blog.fienen.net never resolves. At one point, blog.fienen.net and fienen.net were resolving to my router. www.fienen.net works, but always replaces the URI with the IP address in the address bar, which is annoying as all hell. Of course just fienen.net doesn't do that and appears to be aces at the moment. At another point, everything just resolved to the Wordpress directory regardless.

At this point I can't tell which problems are Apache, and which problems might be DNS. I'm chasing my tail and nothing seems to resolve anything. I could really use some helping hands.

I'm running A2T on WinXP (yeah, I know) behind a WRT54g Linksys router.
Back to top  
linux-don



Joined: 12 Jan 2006
Posts: 30
Location: New York

Posted: Mon Jul 10, 2006 5:28 pm    Post subject:  

Ok.. one thing that I had to do to get the virtual hosts to work in WinXP.. was surrounding your document roots with "" for example

Code: DocumentRoot "C:\apache2triad\htdocs"

instead of:

Code: DocumentRoot C:\apache2triad\htdocs

Try that.. and let me know if that works for you as well.
Back to top  
cigraphics



Joined: 21 Aug 2005
Posts: 148
Location: Romania, Pitesti

Posted: Wed Jul 12, 2006 12:06 pm    Post subject:  

try this one:
Code:
NameVirtualHost *:8080

<VirtualHost *:8080>
    ServerAdmin admin@localhost
    DocumentRoot C:\apache2triad\htdocs
    ServerName www.fienen.net
    ServerAlias fienen.net www.fienen.net
    ErrorLog logs/fienen.net-error_log
    CustomLog logs/fienen.net-access_log common
</VirtualHost>

<VirtualHost *:8080>
      ServerAdmin admin@localhost
      DocumentRoot c:\apache2triad\htdocs\wordpress
      ServerName blog.fienen.net
      ServerAlias blog.fienen.net
      ErrorLog logs/blog.fienen.net-error_log
      CustomLog logs/blog.fienen.net-access_log common
</VirtualHost>
### DELETE THIS ONE #######################
#<VirtualHost *:8080>                                                   #
#      ServerAdmin admin@localhost                                 #
#     DocumentRoot c:/apache2triad/htdocs                       #
#      ServerName localhost:8080                                     #
#      ErrorLog logs/localhost.com-error_log                      #
#      CustomLog logs/localhost.com-access_log common   #
#</VirtualHost>                                                              #
#######################################

instead of C:/apache2triad/foo change this / with this \ and it shoul look like this C:\apache2triad\foo
Back to top  
 
       Apache2Triad Help, Support and Development Forum Index -> Hosting
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.13 © 2001, 2002 phpBB Group