The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
23 views

How do I override a FILES rule?

There is a directive that denies access to all index.html (file name used for example only). <files index.html> errordocument 403 http://mydomains.com/no-access.html order deny,allow deny from ...
0
votes
1answer
14 views

HTAccess: Redirect a subdomain to a another protocoll

I would like to make a rule for a subdomain, so my teamspeak subdomain will directly be redirected to the ts3 protocol. So, let me show you an example: RewriteCond %{HTTP_HOST} ^(ts\.)?example\.com$ ...
0
votes
0answers
14 views

How to handle referral spam in Apache for best performance

I am wondering what is the best way to deal with sites like 4webmasters.org and traffic2money.com which are known to generate what is known as referral spam to the Apache web server. So there is ...
0
votes
2answers
42 views

Deny access to subfolder and file with .htaccess

i need deny access to condiguration files under some subfolder, now i have this rule but don't work <Files ~ "((foo|bar))$"> Order deny,allow Deny from all </Files> If i go to ...
1
vote
1answer
28 views

How to deny access for virtual directories in .htaccess for all IP, and accep for 1 IP?

When you need to deny access to folder for all IP you should to put .htaccess in this folder, which must contein: Order Deny,Allow Deny from all Allow from 1.1.1.1 You can do it in virtual hosts ...
2
votes
2answers
3k views

Authenticate users via LDAP using nginx

I know how to auth the users via LDAP in apache2: # put the following in the VirtualHost <VirtualHost *:443> ServerAdmin user1@bar.foo.com DocumentRoot /var/www <Directory ...
0
votes
0answers
42 views

Is it possible to give a different website based on client ip address with apache2 on debian?

I was wondering if it would be possible to serve a different web root directory to web clients based on their ip address. i.e. if your ip address is in 192.168.2.0/24 then you get /var/www/siteone/ ...
0
votes
2answers
63 views

How to Replace IP field in Rewrite Condition

.htaccess file contains below excerpt to block specific files and folders. RewriteCond %{REQUEST_URI} wp-login.php|wp-admin RewriteCond %{REMOTE_ADDR} !^123.456.789. RewriteRule . - [R=404,L] I ...
0
votes
0answers
74 views

how to configure codeigniter based website for password protected apache basic auth codeigniter

Actually I want to 'password protect' my website as its still in development. My requirement is simple if anyone try to access my site http://xxxxx.com it should prompt for password (Basic apache auth ...
1
vote
1answer
56 views

Htaccess - Map dynamic URL query to a static file

Hoping someone here can help me out with this. I'm trying to map this dynamic query: /wp-admin/admin-ajax.php?action=mymail_form_css to this static file: /wp-admin/mymail_form.css What I've ...
0
votes
1answer
102 views

stop IP address to land on website home page [closed]

I notices that when i type my VPS IP address in address bar then it display website home page. So it may case duplicate content. Can you please tell me How to stop IP address landing on website home ...
1
vote
0answers
103 views

Need .htaccess Rewrite Rule To Remove Trailing <br%20/>

I have links that for some reason have a trailing <br%20/> and I don't know where they are coming from to try and fix them. So I need a general rewrite rule to remove them so the links won't ...
0
votes
1answer
75 views

Incorrect Directory Index

I am attempting to load as the default DirectoryIndex home.html, but the site keeps jumping to index.php. Website is built on WordPress. httpd.conf DirectoryIndex index.html home.html index.php ...
5
votes
2answers
6k views

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 ...
1
vote
1answer
172 views

htaccess Rewrite Issue

I have been attempting to correct an issue that I'm experiencing with WordPress. Following the advice on the WordPress.SE site I've tried to resolve it with an .htaccess rewrite rule, but for some ...
0
votes
1answer
138 views

osCommerce hacked

I had my osCommerce hacked a few moments ago and the morons are using it to send emails. I have identified that they placed scripts inside osCommerce images directory. Is there a way to forbid ...
0
votes
1answer
269 views

CentOS test page and .htaccess

When I use the line below in the .htaccess file, I get the apache CentOS test page. RewriteCond %{REQUEST_FILENAME} !-d How can I fix this?
1
vote
0answers
345 views

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 ...
2
votes
1answer
652 views

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 ...
0
votes
1answer
720 views

control apache referrer to restrict downloads in htaccess file

i want to restrict a file server just for people come from an specific URL: http://graymind.ir how should i config .htaccess file to do this. sorry but i didn't find an answer in sites search.
1
vote
1answer
556 views

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: ...
0
votes
1answer
114 views

If htaccess doesn't use cookies, then how does it identify the client?

If I log in to my site that I protected with htaccess (so it pops up for a username/pwd) then I can't see any cookies. But why? How could the server identify that I'm the one that already logged in to ...
0
votes
1answer
479 views

Why is rewriting in htaccess not working on this server

I'm moving code from a server that served a single domain to one that serves multiple domains. I'm using named virtual hosts to handle the different domains. The url rewriting is not being executed ...
1
vote
2answers
1k views

RewriteRule to cause subdomain to load another DocumentRoot?

I could sure use a little help with what I am trying to do with a RewriteRule in .htaccess: ...to causes URLs using our sharpedge. subdomain to auto-load from the Internet_IE directory - one level ...
2
votes
1answer
3k views

conditional DirectoryIndex based on IP address, using .htaccess

I've got this in httpd.conf: <VirtualHost xx.xxx.xx.xxx> Options All +ExecCGI ServerAdmin hostmaster@thehost.com DocumentRoot /var/www/html/domain.com ServerName dl.domain.org ...
3
votes
1answer
344 views

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?
1
vote
1answer
140 views

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: ...
2
votes
1answer
719 views

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 ...