Questions tagged [htaccess]
66 questions
7
votes
3 answers
Authenticate users via LDAP using nginx
I know how to auth the users via LDAP in apache2:
# put the following in the VirtualHost
ServerAdmin [email protected]
DocumentRoot /var/www
AuthType Basic
AuthName "Please provide USERNAME…
thequestionthequestion
- 345
- 3
- 7
- 23
5
votes
2 answers
Localhost .htaccess not working on Ubuntu
I have been trying to get my .htaccess file to work on my localhost. I know that the file works because it is on my server and works. However it doesn't seem to be working locally.
I have followed the tutorials I could find to set overrides to…
Luke
- 153
- 1
- 1
- 6
4
votes
3 answers
How to zip all files including hidden files to zip file using linux command?
I have linux hosting and wanted to zip everything in one single zip file but all time .htaccess file is excluded and other hidden files are not adding to zip file.
Parth Kundariya
- 59
- 1
- 1
- 4
4
votes
3 answers
Deny access to subfolder and file with .htaccess
I need to deny access to configuration files under some subfolder. Currently I have this rule but it doesn't work:
Order deny,allow
Deny from all
If I go to www.mysite.com/foo/foo2/file.xml, I can view the…
stecog
- 2,221
- 10
- 29
- 39
3
votes
1 answer
How may I distinguish encryption algorithm of htpasswd?
I have an apache web server running on Debian Linux and I secure a certain directory with htaccess. I have no history or knowledge how the .htpasswd file was created. Apache documentations says that crypt() encryption was used to encrypt passwords…
alaf
- 133
- 1
- 4
3
votes
1 answer
conditional DirectoryIndex based on IP address, using .htaccess
I've got this in httpd.conf:
Options All +ExecCGI
ServerAdmin [email protected]
DocumentRoot /var/www/html/domain.com
ServerName dl.domain.org
DirectoryIndex dlindex1.html
...…
govinda
- 153
- 1
- 8
3
votes
1 answer
How to redirect traffic from subdomain to main domain
I have a demo.domain.com and domain.com
they both show the same information and point to the same folder.
How can I redirect all demo.domain.com visitors to domain.com?
Andrew
- 451
- 2
- 4
- 9
3
votes
1 answer
How to test '.htaccess' from command line
I'm trying to track down the cause of an intermittent Apache Internal Server Error during MediaWiki edits and uploads. Some sources tell me to check .htaccess for errors.
I can audit for .htaccess with:
sudo find /var -name '.htaccess' -exec ls -al…
user56041
2
votes
1 answer
How to Block all Bots using .htaccess?
I have noticed that Bing bot doesn't follow robots.txt rules
Because i disallowed all bots but Bing bot doesn't follow the rules
I block some bots using .htaccess
is there a code to Block all Bots?
Patricia Smith
- 33
- 1
- 6
2
votes
0 answers
Limitations of using "require user" multiple times in .htaccess in an Apache config?
Access to a Apache website can be controlled with a line as
Require user john paul george ringo
in a .htaccess file. See https://httpd.apache.org/docs/2.4/mod/mod_authz_user.html.
This same rule can also be written in multiple lines such as…
Cie6ohpa
- 243
- 3
- 6
2
votes
1 answer
IPv6 address changed after upgrade. Why? and how can I harden my .htaccess against this?
I noticed in my local webserver logs that the IPv6 address of my desktop changed after upgrading to Kubuntu 12.04.
inet6 addr: identical:identical:identical:identical:changed:changed:changed:changed/64 Scope:Global
Why did this happen, how can I…
jippie
- 13,756
- 10
- 44
- 64
2
votes
1 answer
403 forbidden issue - .htaccess
I am getting 'Forbidden' 403 problem with my website. Earlier today it worked. The only thing I did was try to access other folders (eg bin). I checked permissions, and it all seems to be looking right. Any ideas how to solve this? what I should be…
Lucy Weatherford
- 557
- 1
- 4
- 6
2
votes
1 answer
Fail2Ban monitor HTPasswd/HTAccess
So i tried putting this in jail.local and restarting fail2ban but no go.
[apache]
enabled = true
port = https
filter = apache-auth
logpath = /var/log/apache*/*error.log
maxretry = 5
[apache]
enabled = true
port = https
filter =…
FreeSoftwareServers
- 2,482
- 10
- 37
- 57
1
vote
0 answers
HTTPS Authentication problem : Polipo
I use internet behind http proxy, and that requires authentication. I tried using polipo to bypass the authenticated proxy to 127.0.0.1:9134.
Applying these settings to my browser, works fine for http://examplewebsite.com
but for…
shivshnkr
- 111
- 4
1
vote
1 answer
Where would I find where an .htaccess file is located and being used on a Mac OS X Lion server that sets Basic Auth on an Apache server?
I've installed some software, namely, a continuous integration (CI) server (Jenkins) on a Mac Mini running Lion Server. The server, by default, runs from port 8080 on local host via the url: http://localhost:8080. However, when I try to access the…
racl101
- 171
- 4