Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jan 2003
    Location
    CT
    Posts
    91
    Thanks
    0
    Thanked 0 Times in 0 Posts

    BLAH.yourname.com

    I have noticed a few sites, eg boards.uo.com, use something else instead of WWW.yourname.com/longthingthatnoonewantstotype
    how would i do this?

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    North East England
    Posts
    853
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's refered to as a subdomain. You may or may not be permitted subdomains by your host. Really all it is is a folder in the publicly accessible directory, that's all "www" is too really.
    [+] Computer/PC issues [+] Silverpaw3D
    ------------------------------------------------
    Never buy a dwarf with learning disabilities...

    ...it's not big, and it's not clever.

  • #3
    Registered User
    Join Date
    Jan 2003
    Location
    CT
    Posts
    91
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well, ok, there is /var/www/html/ where would i create the dir so it would be whatever.warpcell.com?

  • #4
    Regular Coder
    Join Date
    Jan 2003
    Posts
    680
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Most often it doesn't matter where the folder is. IF you are allowed to create subdomains you do it in your CP (or your host does it for you) and then the subdomain is mapped to the directory you specify. Just as your domain is mapped to a directory on the server.
    (o<
    //\ &nbsp; &nbsp; &nbsp; =^..^=
    &nbsp; &nbsp; $!

  • #5
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    There is a way to do it with htaccess, if you can use that

  • #6
    Registered User
    Join Date
    Jan 2003
    Location
    CT
    Posts
    91
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yeah i do have htaccess

  • #7
    Registered User
    Join Date
    Jan 2003
    Location
    CT
    Posts
    91
    Thanks
    0
    Thanked 0 Times in 0 Posts
    so can anyone help me?

  • #8
    Regular Coder
    Join Date
    Nov 2002
    Location
    Bristol, UK
    Posts
    932
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You will need mod_rewrite installed in your apache build first. You also need to figure out whether you need to enable wildcard DNS - you may not have the permissions to do that. If you can, the wildcard (*) will go in there something like this:
    Code:
    $ORIGIN mydomain.com.
    * A 123.12.123.123
    ftp A 123.12.123.123
    mail A 123.12.123.123
    www A 123.12.123.123
    If you are using virtual sites you may have to add that to the site's own definition file, also if you are using virtual sites edit your /etc/httpd/conf/virtual/siteX to add:
    Code:
    ServerAlias *.domain.com
    Otherwise stick it in /etc/httpd/conf/httpd.conf

    Now in your .htaccess file:
    Code:
    RewriteEngine On
    
    Options +FollowSymlinks
    RewriteBase /
    
    RewriteCond %{HTTP_HOST} test.domain.com
    RewriteCond %{REQUEST_URI} !test/
    RewriteRule ^(.*)$ test/$1 [L]
    As far as I know that should work however it is straight ogg the top of my head and I haven't got time or inclination to test it right now. It should work with Apache 1.3.x and 2.0.x as well.

    In addition you may have to edit (or create) your apache.py file but I hope not.

    Good luck!

    ::] krycek [::
    ithium | SOAPI | SDP | PTPScript manual
    "ithium is a non-profit webhost, which is pretty much unique. The mission of ithium is to provide free hosting resources for worthwhile and needy non-profit projects, which otherwise may not be able to obtain such facilities. The money from commercial customers goes to maintain ithium's servers and further development."


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •