Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problems installing .htaccess


Cerbero88

Recommended Posts

Posted

I've followed the instructions of a guide i've downloaded, but i think it's skipping the "user&pass" part. See the code below:

 

.htaccess:

 

# $Id: .htaccess,v 1.1 2003/06/20 00:18:30 hpdl Exp $

#

# This is used with Apache WebServers

#

# For this to work, you must include the parameter 'Options' to

# the AllowOverride configuration

#

# Example:

#

# <Directory "/usr/local/apache/htdocs">

# AllowOverride Options

# </Directory>

#

# 'All' with also work. (This configuration is in the

# apache/conf/httpd.conf file)

 

# The following makes adjustments to the SSL protocol for Internet

# Explorer browsers

 

<IfModule mod_setenvif.c>

<IfDefine SSL>

SetEnvIf User-Agent ".*MSIE.*" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

</IfDefine>

</IfModule>

 

# If Search Engine Friendly URLs do not work, try enabling the

# following Apache configuration parameter

#

# AcceptPathInfo On

 

# Fix certain PHP values

# (commented out by default to prevent errors occuring on certain

# servers)

#

#<IfModule mod_php4.c>

# php_value session.use_trans_sid 0

# php_value register_globals 1

#</IfModule>

 

AuthUserFile /delnonnoaquario.com.ar/catalog/admin/.htpasswd

AuthUserFile /data/members/delnonnoaquario.com.ar/catalog/admin/.htpasswd

AuthGroupFile /dev/null

AuthName ByPassword

AuthType Basic

<Limit GET POST>

require valid-user

</Limit>

 

Do you think there's a problem with it?

 

Thanks a lot for your help :blush:

Posted
I've followed the instructions of a guide i've downloaded, but i think it's skipping the "user&pass" part. See the code below:

 

.htaccess:

 

# $Id: .htaccess,v 1.1 2003/06/20 00:18:30 hpdl Exp $

#

# This is used with Apache WebServers

#

# For this to work, you must include the parameter 'Options' to

# the AllowOverride configuration

#

# Example:

#

# <Directory "/usr/local/apache/htdocs">

# AllowOverride Options

# </Directory>

#

# 'All' with also work. (This configuration is in the

# apache/conf/httpd.conf file)

 

# The following makes adjustments to the SSL protocol for Internet

# Explorer browsers

 

<IfModule mod_setenvif.c>

<IfDefine SSL>

SetEnvIf User-Agent ".*MSIE.*" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

</IfDefine>

</IfModule>

 

# If Search Engine Friendly URLs do not work, try enabling the

# following Apache configuration parameter

#

# AcceptPathInfo On

 

# Fix certain PHP values

# (commented out by default to prevent errors occuring on certain

# servers)

#

#<IfModule mod_php4.c>

# php_value session.use_trans_sid 0

# php_value register_globals 1

#</IfModule>

 

AuthUserFile /delnonnoaquario.com.ar/catalog/admin/.htpasswd

AuthUserFile /data/members/delnonnoaquario.com.ar/catalog/admin/.htpasswd

AuthGroupFile /dev/null

AuthName ByPassword

AuthType Basic

<Limit GET POST>

require valid-user

</Limit>

 

Do you think there's a problem with it?

 

Thanks a lot for your help :blush:

 

 

I had a problem where I added a contribution and it seemed to be making me skip the admin user/pass area of the admin login.... I tried to login from a different pc and it worked fine... I guess my browswer was just storing the login details... still unsure tho...

 

I had installed the contribution because I was getting an error message saying register_globals was turned off. I checked with my hosting company and was told to copy the php.ini file from my home directory to all those with php files in... which I thought sounded ridiculous, but it actually worked.

 

Don't know if I have helped or confused you more, but at least its something to think about!! And may provoke an expert into action!

Posted

You need to be more specific when you say it is not working. When you go to the page does it not ask for a user name and password, or do you get an error message?

Copy your .htaccess page and .htpasswd page here so we can look at them. Where did you place each of these pages?

Posted

These are conflicting, different paths to the same file.

 

AuthUserFile /delnonnoaquario.com.ar/catalog/admin/.htpasswd
AuthUserFile /data/members/delnonnoaquario.com.ar/catalog/admin/.htpasswd

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...