Protecting Admin CP with HTTP auth

"File-path is the path to the user file. If it is not absolute (i.e., if it doesn't begin with a slash), it is treated as relative to the ServerRoot."

Have you tried ./misc/.htpasswd?
 
Thanks Jeremy, I already tried that, along with just about every permutation of paths I could think of.

Unfortunately no joy so I've asked my host to look into it as no matter what I can't seem to get it to work.
 
I'm having issues with this... this is my htaccess...
Code:
## Expires
<IfModule mod_expires.c>
	ExpiresActive On
	ExpiresDefault "access plus 1 seconds"
	ExpiresByType text/html "access plus 1 seconds"
	ExpiresByType image/gif "access plus 3456000 seconds"
	ExpiresByType image/jpeg "access plus 3456000 seconds"
	ExpiresByType image/png "access plus 3456000 seconds"
	ExpiresByType text/css "access plus 3456000 seconds"
	ExpiresByType text/javascript "access plus 3456000 seconds"
	ExpiresByType application/javascript "access plus 3456000 seconds"
	ExpiresByType application/x-javascript "access plus 3456000 seconds"
</IfModule>

## Compression
<IfModule mod_headers.c>
	<IfModule mod_deflate.c>
		AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
		BrowserMatch ^Mozilla/4 gzip-only-text/html
		BrowserMatch ^Mozilla/4\.0[678] no-gzip
		BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
	</IfModule>
</IfModule>

## Rewrites
<IfModule mod_rewrite.c>
	RewriteEngine On

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -l [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^.*$ - [NC,L]
	RewriteRule ^(data|js|styles|install) - [NC,L]
	RewriteRule ^.*$ index.php [NC,L]
</IfModule>

## Administration
<Files admin.php>
	AuthUserFile /removed/for/security/reasons
	AuthType Basic
	AuthName "8WayRun Admin Control Panel"
	Require valid-user
</Files>

Instead of it giving a popup for the login screen (as it does with my VB installation), it just gives me a page error:
The requested page could not be found.

If I remove the ##Rewrites section it works fine... but thats the default rewrite code that comes with XF.
 
Top Bottom