Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 Subdomains and masochism
Google
Post new topic Reply to topic
Author Message
Quicksilver
 
 


Joined: 30 Jun 2006
Posts: 1

PostPosted: Fri Jun 30, 2006 5:10 am Reply with quoteBack to top

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.
View user's profileSend private message
linux-don
 
 


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

PostPosted: Mon Jul 10, 2006 5:28 pm Reply with quoteBack to top

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.
View user's profileSend private messageYahoo MessengerMSN Messenger
cigraphics
 
 


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

PostPosted: Wed Jul 12, 2006 12:06 pm Reply with quoteBack to top

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
View user's profileSend private messageSend e-mailYahoo Messenger
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT