SunQuest
           Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 15th, 2001, 01:04 AM
Big E Big E is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 19 Big E User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Big E Send a message via AIM to Big E
Question

I need to get a subdomain on my website. I have DNS wildcards enabled but I don't have access to any config files because I am on a remote host. I have tried rewrite_mod with no succes. My website is http://123-makeme.com and I would like counter.123-makeme.com to go to 123-makeme.com/signup. Any help on this would be great. Thanks.

Reply With Quote
  #2  
Old March 15th, 2001, 01:48 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> I don't have access to any config files because I am on a remote host

I hope you have access to httpd.conf. It's better to put the following stuffs to httpd.conf than .htaccess.

RewriteEngine on
RewriteCond %{SERVER_NAME} ^counter\.123-makeme\.com$
RewriteRule ^(.*) http://123-makeme.com/signup/ [R,L]

Reply With Quote
  #3  
Old March 15th, 2001, 09:17 AM
Big E Big E is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 19 Big E User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Big E Send a message via AIM to Big E
Unhappy nope

No, I don't have access to the httpd.conf. Thats the problem. I know I need to add this to my .htaccess file but is it in the www dir or before that?

Reply With Quote
  #4  
Old March 15th, 2001, 10:46 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> is it in the www dir or before that?

What www dir? Just put that .htaccess in your docroot. In URL, that is http://123-makeme.com/.htaccess

Make sure http://123-makeme.com is your default domain or default vhost. Your counter.123-makeme.com doesn't need to be a vhost. Since you have wildcard enabled, when people trying to reach your site via http://counter.123-makeme.com, it will resolve to the IP of your default domain. It won't work if 123-makeme.com is not your default domain or default vhost. Anyhow, don't worry about this for the moment, just put that .htaccess in the right location.

Reply With Quote
  #5  
Old March 15th, 2001, 11:25 AM
Big E Big E is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 19 Big E User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Big E Send a message via AIM to Big E
Angry ok

OK, I did that. I think its somthing with my host because it refers to thier site so I put in a request and I'll let you know how it turns out. Thanks.

Reply With Quote
  #6  
Old March 16th, 2001, 09:27 PM
Big E Big E is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 19 Big E User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Big E Send a message via AIM to Big E
Unhappy 500 error

RewriteEngine on
RewriteCond %{SERVER_NAME} ^counter\.123-makeme\.com$
RewriteRule ^(.*) http://123-makeme.com/signup/ [R,L]

Thats my code and it gives me a 500 error when I open my site. Any ideas?

Reply With Quote
  #7  
Old March 16th, 2001, 11:06 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Say http://123-makeme.com/ has a docroot as: /home/httpd/htdocs
Within <Directory "/home/httpd/htdocs"> there should be a AllowOverride line. Make sure FileInfo is included.

If you use a Directive in your .htaccess which is not allowed to, you would get 500 error. That said, in order to use any Rewrite Directive (except RewriteMap which can't be in .htaccess in any way) in .htaccess, you must have AllowOverride FileInfo.

Reply With Quote
  #8  
Old March 19th, 2001, 01:59 PM
Big E Big E is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 19 Big E User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Big E Send a message via AIM to Big E
Question huh?

I don't know what you mean, I've been to the Apache website and couldn't figgure it out so could you please help me? Thanks.

Reply With Quote
  #9  
Old March 20th, 2001, 06:07 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> Say http://123-makeme.com/ has a docroot as: /home/httpd/htdocs

1) What is your docroot (DocumentRoot)?

>> Within <Directory "/home/httpd/htdocs">

2) Within <Directory "/your/docroot/path">

>> there should be a AllowOverride line

3) Something like:

<Directory "/your/docroot/path">
blah blah
blah blah
AllowOverride xxx
</Directory>

>> Make sure FileInfo is included

4)
<Directory "/your/docroot/path">
blah blah
blah blah
AllowOverride FileInfo
</Directory>

>> If you use a Directive in your .htaccess which is not allowed to, you would get 500 error.

5) In order to use RewriteEngine and all others (except RewriteMap), you need to tell Apache to read Rewrite lines by reading (4) above. If you don't do this, Apache won't read your .htaccess (with Rewrite lines in it) and return a [500] error.

What don't you understand now? If you are still in trouble with this, I strongly suggest you to give up on Apache and use IIS.

Reply With Quote
  #10  
Old March 30th, 2001, 01:51 AM
Helicon Helicon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 15 Helicon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Subdomain tutorial

Is there a subdomain tutorial available anywhere on the net?

I'm looking for extensive information on this subject, Is Rewrite only way to do subdomain hosting?

Reply With Quote
  #11  
Old March 30th, 2001, 11:30 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> Is there a subdomain tutorial available anywhere on the net?

Dunno. You may do a search here in Apache forum. Anyhow, the must do prerequisite is to make sure that subdomain is DNS (forward lookup) resolvable. Enabling wildcard or adding cname or A record, doesn't matter depending on the number of subdomains.

>> Is Rewrite only way to do subdomain hosting?

Definitely no. mod_rewrite is extremely powerful with regex and various conditions plus the extensive use of environment variables which make configuring subdomain alot easier.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > subdomain


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway