Sponsored Content
Top Forums Programming how to know if a directory is normal one or subdomain? Post 89906 by hello20009876 on Wednesday 16th of November 2005 07:20:46 PM
Old 11-16-2005
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++.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

email account for subdomain (HOW-TO)

Hai i need to create an email account for subhost... I tried creating an unix user account... But the adduser (or) useradd command is not working in subhost login even when i entered with the root login of the subhost... If i create unix user account with root login of host, then the mail... (1 Reply)
Discussion started by: collins
1 Replies

2. Linux

domain pointer for the subdomain

hi frnds. I have created a domain called mydomain.net i have added a subdomain tim.mydomain.net , cynthia.mydomain.net and harley.mydomain.net how could i add a domainpointer for these subdomains as well. So I can run jsp on it. Does any one have... (0 Replies)
Discussion started by: naik_mit
0 Replies

3. Shell Programming and Scripting

find subdomain in url

I want to find out subdomains in the url using shell script. e.g narendra.eukhost.com abc.domainname.co.uk I want to extract narendra & abc from the above urls. Please any one can suggest idea or script ? (2 Replies)
Discussion started by: nrbhole
2 Replies

4. IP Networking

MX record for a subdomain

Hi all, I have problem regarding public subdomain delegation i have created an A record for subzone in BIND on a machine running Solaris10 Sparc to point to another machine running win2k3 as follows sub.domain.tld and www.sub.domain.tld now i want to add an MX record for mail routing for the... (1 Reply)
Discussion started by: h@foorsa.biz
1 Replies

5. Shell Programming and Scripting

how to grep a subdomain

When I try to grep a subdomain having three dots("."), I am getting another fully qualified domain also that looks same as the sub domain but with hyphen("-") in the place of dot(".") I just need the first result. Please help me... grep abcd.efg.xyz.info /etc/named.conf zone... (15 Replies)
Discussion started by: an00p
15 Replies

6. Shell Programming and Scripting

Block device fs vs normal directory

I talked with this guy who seems to think loop mounting a fs ext3 image on a directory, as opposed to just using the underlying filesystem, will work better as far as IO conflicts. I have no idea why this would be better? I haven't been able to contact him. Basically we have a daemon that... (0 Replies)
Discussion started by: stevenswj
0 Replies

7. Linux

Block device fs vs normal directory

I use CentOS I talked with this guy who seems to think loop mounting a fs ext3 image on a directory, as opposed to just using the underlying filesystem, will work better as far as IO conflicts. I have no idea why this would be better? I haven't been able to contact him. Basically we have a... (1 Reply)
Discussion started by: stevenswj
1 Replies

8. What is on Your Mind?

Tld.subdomain.name.subname

Way back in the early dawn of the 'net, there were two competing notations for specifying a FQDN, the familiar name.subdomain.domain.tld (such as news.bbc.co.uk) and the reversed tld.domain.subdomain.name (uk.co.bbc.news). And if memory serves, only the UK used the latter style of FQDN for a period... (0 Replies)
Discussion started by: derekludwig
0 Replies

9. UNIX for Dummies Questions & Answers

Subdomain is not working, debian, apache

Hi, I use debian jessie, apache. I am not allowed to post links here at this forum, I am new user. I made subdomain porodin.predicsasa.com and it is working, vhost file is porodin.conf in /etc/apache2/sites-available then I copied vhost file and made it hosting.conf, did a2ensite hosting and it... (5 Replies)
Discussion started by: alanford
5 Replies

10. IP Networking

Free subdomain to my IP Address and Static IP

Hi all, I would need to register a random free subdomain address and associate that to my IP Address. Any suggestion of a good service? Also I don't have a static IP but i remember that there are services that automatically reset the right IP address behind the subdomain but i don't remember... (1 Reply)
Discussion started by: Tameto
1 Replies
SUBDOMAIN.CONF(5)						     AppArmor							 SUBDOMAIN.CONF(5)

NAME
/etc/apparmor/subdomain.conf - configuration file for fine-tuning the behavior of the AppArmor security tool. DESCRIPTION
The AppArmor security tool can be configured to have certain default behaviors based on configuration options set in subdomain.conf. There are two variables that can be set in subdomain.conf: SUBDOMAIN_PATH, and SUBDOMAIN_MODULE_PANIC. SUBDOMAIN_PATH This variable accepts a string (path), and is by default set to '/etc/apparmor.d/' This variable defines where the AppArmor security tool looks for its policy definitions (a.k.a. AppArmor profiles). SUBDOMAIN_MODULE_PANIC This variable accepts a string that is one of four values: warn, build, panic, or build-panic, and is set by default to warn. This setting controls the behavior of the AppArmor initscript if it cannot successfully load the AppArmor kernel module on startup. The four possible settings are: warn Log a failure message (the default behavior). build Attempt to build the AppArmor module against the currently running kernel. If the compilation is successful, the module will be loaded and AppArmor started; if the compilation fails, a failure message is logged. panic Log a failure message and drop to runlevel 1 (single user). build-panic Attempt to build the module against the running kernel (like build) and if the compilation fails, drop to runlevel 1 (single user). BUGS
Setting the initscript to recompile the module will fail on SUSE, as the module source is no longer installed by default. However, the module has been included with the SUSE kernel, so no rebuilding should be necessary. If you find any additional bugs, please report them at <http://https://bugs.launchpad.net/apparmor/+filebug>. SEE ALSO
apparmor(7), apparmor_parser(8), and <http://wiki.apparmor.net>. AppArmor 2.7.103 2012-06-28 SUBDOMAIN.CONF(5)
All times are GMT -4. The time now is 03:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy