[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] .htaccess for dummies



Greetings,

	My question is a bit more simple than what
you're trying to do, so maybe we can find answers
to everything at once!

	I'm just trying to find or create then 
.htaccess file to do custom 404 pages, etc.  I have
instructions on how to do this, it's very simplistic
to get going, but I can't find the existing .htaccess
file for the life of me!  Isn't there a default version
of this in the RaQ4r's that I can modify per the 
instructions I have?  Or do I need to create one from
scratch and then where would I put it?

	My confusion comes more in that I want it to 
determine the custom error pages for the entire server,
not just the individual virtual sites or IP-assigned
sites within the server.  And if I figure out where
the .htaccess file is or should be, do I load those 
pages into the same space to eliminate long reference
entries in the .htaccess file to make it all fly
right?

	Anyone have thoughts?

	Oh yes, do I need to do anything beyond a possible
reboot once I get this solved to get it going?  Do I need
to touch any files or modify any other .conf files to 
have them recognize the .htaccess file now exists and
should be used?

	Thanks in advance!

      David J. Duffner
      VP Operations
      NWC Corporation
      Global E-Pay Solutions 

      www.nwcxpress.com 

>-----Original Message-----
>From: cobalt-users-admin@xxxxxxxxxxxxxxx
>Subject: [cobalt-users] .htaccess for dummies
>
>
>I am trying to setup .htaccess on a raq4, but it's not working. 
>This is what
>I did:
>
>1) I Put the following at the bottom of /etc/httpd/conf/access.conf
><Directory /home/sites/site1/web/can>
>AllowOverride All
>Options All
></Directory>
>
>2) Created a .htaccess file in teh directory to be protected as follows:
>#Access file
>order allow,deny
>allow from all
>require valid-user
>AuthPAM_Enabled off
>Authname canuauthme
>Authtype Basic
>AuthUserFile /home/sites/site1/web/can/robboard/.htpasswd
>
>3) I created a password file in the directory to be protected
>(/home/sites/site1/web/can/robboard) by typing:
>htpasswd -c .htpasswd [username]
>
>4) I chown the 2 files to admin.
>
>5) I chmod the 2 files to 755
>
>6) I restarted the server