LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 04-07-2006, 04:15 AM   #1
WhatsOnYourBrain
Member
 
Registered: Apr 2006
Posts: 64
Blog Entries: 2

Rep: Reputation: 15
Question Apache on Linux: .htaccess settings and cPanel


(edit: note-- if you want to find my question... you can actually skip all of my nonsense narration-- all the way into the first reply at the bottom. sorry-- it just took me that long to hash-out what i was trying to ask)

hello!
to be honest, i'm not sure if i've come to precisely the right place for this inquiry, so please let me know if there's a more appropriate resource. (but, from the looks of things-- i think i'm in the right spot! and the emphasis on friendliness sounds inviting.

i'm lease what i believe is "shared hosting" space from a provider who is using the following (as copied from my cpanel info):
Quote:
General server information:
Operating system Linux
Service Status Click to View
Kernel version 2.4.21-32.0.1.EL
Machine Type i686
Apache version 1.3.34 (Unix)
PERL version 5.8.7
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
Installed Perl Modules Click to View
PHP version 4.4.2
MySQL version 4.1.13-standard
cPanel Build 10.8.1-STABLE 31
Theme cPanel X v2.5.0
Documentation Click to View
cPanel Pro 1.0 (RC36)
this Shared Hosting account is setup so that i can use 5 "addon" domains, which, although they don't appear to an unsuspecting visitor as a sub-folder of another domain-name, to avoid the set-up of a new control panel account (and keep cost down, i presume), the files simply reside in a sub-domain of the parent domain account (i.e. "men are from mars dot com" could be an add-on domain of "women are from venus dot com", yet the visitors would never be any the wiser (in theory)-- essentially because the DNS allows the "parking" of that add-on domain name calls to that URL are redirected to the sub-folder where the files reside, whereas the similar, "subdomain" option uses no new domain name, yet no slashes in the URL to appear blatantly as a sub-folder, but more like a sub-net mask, as in "sub-domain dot domain dot com" instead of "domain dot com-- slash sub-domain".

Last edited by WhatsOnYourBrain; 04-17-2006 at 09:54 PM.
 
Old 04-17-2006, 09:53 PM   #2
WhatsOnYourBrain
Member
 
Registered: Apr 2006
Posts: 64
Blog Entries: 2

Original Poster
Rep: Reputation: 15
please allow me to clarify

upon re-reading my post above, i can see why i received no replies... it made abosolutely no sense! i don't think i ever even asked a question!

what this is all about-- what i was obviously unable to spit out upon my first try--- its about problems with the Error pages (404 file not found, etc). because i'm using add-on domains on a shared hosting account, i'm trying to figure out how to use the .htaccess file to send visitors to a pre-defined error page, no matter where the error occurs, they will always go to this predefined page.

for example, my understanding of .htaccess is that the result i've explained above is achieved by the following in the .htaccess file's first line:
DirectoryIndex my-singular-index.htm

so that all errors would go to my-singular-index.htm

i really already know the answer to my question from experience-- but i'm hoping for a bit of discussion about it because i don't understand "WHY" it's happening this way. so... all of this said...

What unusual behaviors might i expect from .htaccess when an add-on domain of a shared hosting account attempts to use the DirectoryIndex as in my example above?

must i simply resolve that, because of the shared nature of this hosting account, all of my error pages will default to the parent of parent root of roots (as far as my own Leased space goes), or can i manipulate .htaccess in such a way that i can in fact have dedicated error pages for my add-on domains?

Could someone define, in laymans terms, what is "Shared Hosting" versus dedicated? (only because i think it's relevant to the other two questions)

thanks!
 
  


Reply

Tags
apache, based, cpanel, htaccess, inquiry, linux, server, web


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
Apache and .htaccess jamluv Linux - Security 9 06-03-2005 03:53 PM
Help with Apache and .htaccess spud Programming 1 03-17-2005 12:52 PM
Apache/2.0.51 .htaccess 2782d4 Linux - Software 2 02-08-2005 01:12 PM
apache .htaccess linuxanswer Linux - General 1 05-01-2004 05:20 PM
is htaccess on apache 2.0 not the same as in 1.3 abd_bela Linux - General 3 07-23-2003 06:17 AM


All times are GMT -5. The time now is 11:56 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration