Computer Science Canada

Making a subdomain.

Author:  Amailer [ Thu Aug 28, 2003 11:14 am ]
Post subject:  Making a subdomain.

Ok, now.
Suppose i have a file called info.php in a folder called 'info'.

Now when i type the url.

info.mydomain.com
It displays the information from the info file in the folder info.

How can i do that?
I tried include....but with include it takes it asif the file is in the same folder the 'include script' is in.

So the images which are in the 'info.php' file, won't show up.
Hope i made some sense Confused

err what im trying to do is: http://forum.termix-zero.ath.cx/
check the links...where the phpbb files are really keeped are: http://termix-zero.ath.cx/termix/forum/

Author:  octopi [ Thu Aug 28, 2003 12:44 pm ]
Post subject: 

How have you set up your sub domain?

If forum..... points to the same directory as the other location, then there shouldn't be a problem.

What method are you using for your subdomains?

Author:  Amailer [ Thu Aug 28, 2003 12:56 pm ]
Post subject: 

No method, i need 1.
The index.php (where the include line is in) is in the same dir as the folder termix (in the termix folder there is the forum folder)

Author:  Blade [ Thu Aug 28, 2003 2:40 pm ]
Post subject: 

okay. if you are using your own server.. add this to your httpd.conf

Quote:
LoadModule vhost_alias_module modules/mod_vhost_alias.so
UseCanonicalName Off
VirtualDocumentRoot "C:/path/to/docs/%1"


also... since i use blademan.no-ip.com my server trys to find a blademan folder.. or if i use its compname it'll try to find a folder called my compname, and same with localhost.. so you'll have to have folders for these. in unix its easy because you can link folders, but in windows you cant.

Author:  Amailer [ Thu Aug 28, 2003 4:53 pm ]
Post subject: 

Ok, so my domain is termix-zero... i have to have a folder called 'termix-zero'?

err dammit gatta change alot of stuff Confused

Author:  octopi [ Thu Aug 28, 2003 5:03 pm ]
Post subject: 

You might find it easier, to just set up a single virtual domain name.

You wouldn't have to change anything....but each something.domainname.com would have to be listed.

Author:  Amailer [ Thu Aug 28, 2003 5:10 pm ]
Post subject: 

Oh ok good, ahh ill do that Very Happy

Author:  octopi [ Thu Aug 28, 2003 5:23 pm ]
Post subject: 

Do you know how?, cause if not, I don't mind you asking me, or msn'ing me.

Author:  Amailer [ Fri Aug 29, 2003 11:08 am ]
Post subject: 

got msn? tell me it
second,
where do i put
code:

LoadModule vhost_alias_module modules/mod_vhost_alias.so
UseCanonicalName Off
VirtualDocumentRoot "C:/path/to/docs/%1"

in my httd? (thats where in the httd)
C:/path/to/docs/%1 --- path to the www htdocs right?

EDIT: OK, i have no clue what im doing here!
HELP!!!
MSN!
(in my profile add me)

Author:  octopi [ Fri Aug 29, 2003 12:28 pm ]
Post subject: 

You put that in the httpd.conf file
Somewhere near the end is good.

/path/to

is the folder that contains
www, info
folders.

Using virtual servers is a MUCH better idea for you.

I added you to my list.

Author:  Amailer [ Fri Aug 29, 2003 12:56 pm ]
Post subject: 

Thanks Very Happy

Author:  Amailer [ Thu Nov 13, 2003 8:39 pm ]
Post subject:  Does it slow it down?

If i have over 3 or 2, does it slow down my apache/computer?:

code:

<VirtualHost *>
     DocumentRoot "BHA\BAH"
     ServerName bah.myserver.bah
</VirtualHost>

(2 or 3 of the above code in my httpd config)


: