The Apache HTTP Server is an Open Source Web server, which originated from a series of patches to the NCSA HTTPd. Apache is the world's most popular Web server, which is run on 54.90% of all Web servers according to the Netcraft survey conducted July 2010.

learn more… | top users | synonyms (1)

3
votes
1answer
724 views

What are the most commonly used and basic Apache htaccess redirects?

This question is here so we can offer users who are looking for information on how to make one or more common or basic redirects in Apache using the htaccess file. All future questions pertaining to ...
8
votes
3answers
604 views

Tactics for dealing with misbehaving robots

I have a site that, for regulatory reasons, may not be indexed or searched automatically. This means that we need to keep all robots away and prevent them from spidering the site. Obviously we've had ...
4
votes
2answers
3k views

.htaccess directory to subdomain

I have been trying to make a subdomain from a directory (made by .htaccess) to be used as the main page starting like http://domain.com/sub/2/3/4.html and turning into ...
29
votes
7answers
66k views

What is the best Apache logs Analyzer? [closed]

What real-time log analyzer can you suggest for Apache access and error logs? There is a list of web analytics software on wikipedia, but it would be great to hear opinions from people with ...
0
votes
4answers
157 views

Redirect everything from old domain to new domain

I need to (permanent) redirect all of the following: www.domain.com www.domain.com/folder sub.domain.com sub.domain.com/folder Basically all URLS that are reachable without being intended to: ...
6
votes
2answers
887 views

How do I temporarily disable a website?

I have to take a website down for a month, which is the least intrusive way to keep achieved SEO optimizations? should I just add in apache config: <Directory ...
7
votes
1answer
713 views

Permissions for serving up temporary files

I have a system (web based application) which pulls file attachments from a 3rd party system via SOAP. These are in turn on our system created as files in a directory. When a user of the system ...
3
votes
2answers
73 views

Requests in form: http://www.site.com/one/two/three/ in Apache 2

how can I configure Apache server, to mantain requests such as: http://developers.facebook.com/docs/reference/fql/ (i mean the /one/two/three)? What's the name of this technique and how it is ...
4
votes
2answers
154 views

I want to use gzip compression in Apache

I want to enable gzip compression for acethehimalaya.com. Can anybody please tell me what is the best way of achieving compression in an Apache Webserver?
3
votes
1answer
88 views

Prevent interactions between Apache virtual hosts on the same server

I have a VPS running Apache 2.0, with multiple domains and multiple IPs set. In document root /var/www/html/ I have http://serverA.com and I created a virtual host on folder /var/www/html/serverB ...
2
votes
2answers
3k views

Apache2: How to host apps at different ports with SSL?

I'm trying to achieve quite simple task actually. I bind application to a port, I enable SSLEngine at each VirtualHost entry for that port. Everything works beside one thing: if you type url that ...
1
vote
2answers
118 views

SSL Certification on both www and no-www domains

We've got our website running and HTTPS / SSL works just great. EXCEPT: when users enter http://www.mydomain.com and then enter the secure area and get directed to https://www.mydomain.com it works ...
2
votes
1answer
2k views

Webmin - Setting up multiple virtual hosts - Subdomains

Can someone please help me in using WEBMIN to setup virtual hosts. My current domain www.MYDOMAINLOLFAKE.com currently functions. Settings are as follows - Apache - Handles the name-based server ...
7
votes
2answers
3k views

Why does my site only work with a www in the URL?

I'm a bit confused as the following points: There is a simple text website, with no javascript, that works only with the prefix. http://www.mysite.corporation.com works but ...
5
votes
5answers
14k views

“File does not exist” in apache error log

This is an example of an error in out log file: File does not exist: /var/www/website/female, referer: http://www.website.com/female/dresses/A-Dress-Black "/female" doesn't exist, because we use ...
4
votes
4answers
259 views

How to restrict access to my site using htaccess

How to disallow access to site except me?
3
votes
2answers
7k views

Apache http.conf allow intranet

what would be the correct config to allow only authenticated users and the intranet (without need for a password) in apache? This does not request a password and without the "satisfy any" intranet ...
0
votes
1answer
144 views

Switch to https

I'm looking to use an .htaccess file to use mod_rewrite to switch the protocol from http:// to https:// when someone hits my website. For instance, once someone goes to: http://www.mywebsite.com/ ...
6
votes
2answers
2k views

Apache: How can I force the browser to reload CSS files?

How to force the user's web browser to reload CSS files with Apache Server? I updated my website's CSS file but some users are still seeing problems that would be resolved if their browsers fetched ...
6
votes
1answer
2k views

.htaccess rule to redirect from 404 to search results

When a user (or a bot) request on non existing page, I want to redirect him to the search results. I prefere to do it with the .htaccess file using something like: ErrorDocument 404 ...
4
votes
1answer
94 views

How can I serve all resources under HTTPS instead of HTTP without changing their URLs in the HTML code

I know that by using an .htaccess file I can redirect everyone to https://. However, my SSL certificate complains if all the content isn't served under HTTPS. Is there a way to convert all the ...
2
votes
3answers
133 views

How to make parameters look more attractive

I'm making a blog site and instead of the users blogs being called /blog?display=username I would like it to just be a sub domain such as mysite.com/username How would I be able to make the first ...
2
votes
1answer
367 views

Gzip compress offline?

I've configured my site to serve compressed content by putting this line in .htaccess AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css application/javascript ...
2
votes
3answers
279 views

How to use .htaccess to show smarter URLs

I'd like to ask how can I call the page www.domain.com/index.php?page=somepage and make the browser show the user in the URL bar the address www.domain.com/somepage/? How do I do that trick?
1
vote
1answer
50 views

Reasons for putting an application platform behind a web server

Application platforms like Node.js and Tomcat can bind to port 80 and serve external requests directly. Alternatively, these application platforms bind to a local port (like Tomcat's 8080) that is ...
1
vote
1answer
1k views

Restrict direct folder access via .htaccess except via specific links

I want to restrict access to a folder on my server so that visitors may only access the contents (a web application) via links in the same domain. Can I do this using .htaccess? To be clear, I simply ...
1
vote
3answers
436 views

Stopping Apache from serving requests for content from other sites

When looking at my Apache2 access logs, I occasionally see GET requests asking my server for a page on a completely different server. For example: xx.xx.xx.xx - - [18/Jan/2012:07:12:10 -0500] "GET ...
1
vote
1answer
1k views

Stop directory listing using .htaccess and redirect to good error page

I have a directory with several sub directories. I found this article Preventing Directory Listing that shows me how to prevent people from getting the directory listings. IndexIgnore * But it ...
0
votes
1answer
36 views

Abuse on server, thousands of hits on /error/list/socks5.php

For several monts now, I've been noticing several IPs at random time hitting our server without providing any virtual host. The hits are all 404 errors and repeat every second for a period of time. ...
0
votes
1answer
105 views

Name of virtualhost (apache)

I need to create virtualhost with name "virtualhost_name". To access it with http://virtualhost_name I have a pattern: <VirtualHost *:80> ServerAdmin jan@novak.cz DocumentRoot "path" ...