LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2005, 11:12 AM   #1
unix20009876
LQ Newbie
 
Registered: Nov 2005
Posts: 11

Rep: Reputation: 0
how to find sub-domain?


I created a sub-domain, say: www2_mine_com,
http : / / ww2_mine_com/index_html is in directory
public_html/www2/index.html.

I am wondering how http server finds the page: which (symlink) file contains redirection info?

thx

(_ = . above)
 
Old 11-16-2005, 11:41 AM   #2
unix20009876
LQ Newbie
 
Registered: Nov 2005
Posts: 11

Original Poster
Rep: Reputation: 0
subdomain, http and redirection

for browser to:
http (://) subdomain_mydomain_com/index.html

the page is actually in directory:
public_html/subdomain/index.html

I am wondering how http server finds the page, there must be a redirection file (maybe symlink file), but wher it is?

thx

(_ = . above)
 
Old 11-16-2005, 06:30 PM   #3
unix20009876
LQ Newbie
 
Registered: Nov 2005
Posts: 11

Original Poster
Rep: Reputation: 0
how to know if a directory is normal one or subdomain?

there are 2 directiries under public_html directory:

public_html/images
public_html/pictures

"images" is a normal directory (uploaded by ftp) and "pictures" is a subdomain (created in cPanel).

if using cpanel, I know "pictures" is subdomain because it is displayed as subdomain in cpanel.

but:
How can I know a directory is subdomain programmatically? I mean, kowning it from C++ program, I am sure that there must be info about subdomain stored in some files, do you know the info files? where are they?

If I know the info files, i may read subdomian info from them by c++.

Last edited by unix20009876; 11-16-2005 at 07:21 PM.
 
Old 11-17-2005, 03:47 AM   #4
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
you need to make a virtual host
 
Old 11-17-2005, 07:18 AM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Merged a few similar threads together.
 
Old 11-17-2005, 11:57 AM   #6
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
if you are running apache then look in the httpd.conf file for a virtualhost section
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to find the Domain Master Browser error in samba vrillusions Linux - Networking 2 02-10-2011 11:40 PM
How do I find out what are the authoritative nameservers for the domain? bwoodwar Linux - Networking 3 09-13-2005 11:18 PM
find all pages at a domain philgar Linux - Software 1 03-17-2005 01:28 PM
Samba - client cant find domain Procrastinator Linux - Networking 4 09-01-2004 05:23 PM
how can I find my default domain? HadesThunder Linux - General 2 04-22-2004 08:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration