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)

4
votes
5answers
967 views

Tool for clickstream anlyzing of Apache logs?

Are there any good tools to analyze the clickstream of individual users in Apache web server logs? For example, I'd like to be able to click on a visitors IP address and see all pages the user ...
4
votes
3answers
132 views

How can I determine the trending pages on my site?

I'm looking to see what the "hot" pages are on one of my sites. I want to see for various timeframes, what the top-50 pages are. I'm only concerned with the current month's data. I'm going to create ...
4
votes
2answers
75 views

Best process for upgrading a live server

I just recently started at a new company, and their live server has PHP v5.2.6 (yes, circa 2008). A site I recently designed for them actually wouldn't work on it because PHP is so old, so I've now ...
4
votes
2answers
160 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?
4
votes
4answers
261 views

How to restrict access to my site using htaccess

How to disallow access to site except me?
4
votes
2answers
237 views

Ditch cPanel / WHM in favour of manual seup

We currently use cPanel / WHM on a reseller account but are looking at getting a dedicated server. My first thought was to duplicate this set up on the dedicated box to allow us to quickly create new ...
4
votes
2answers
170 views

Website hack resulting in auto redirect - where to start looking?

My website is being redirected to a non-existent page (/showpage.php) for some users when they hit the homepage. For other users, the site works fine. I have looked in the index.php files and some ...
4
votes
1answer
799 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 ...
4
votes
1answer
161 views

Apache create index for directories without one specified.

Currently, I use a PHP script to list the contents of a directory that does not have an index file, but I don't want to have to copy it to every directory without an index. Can Apache do it ...
4
votes
2answers
1k views

running multiple name-based web applications on a single ip address with SSL

I'm working on web projects. My scenario is I have two web applications running on one single web server (Apache). Due to my company policy, they ask me to put both of them on SSL (Port #443), no ...
4
votes
1answer
9k views

Configure Apache HTTP 2.2 for PUT method

I've written code for file upload and download using HttpWebRequest/HttpWebResponse class in C# with Apache 2.2 as a web server. In code I'm using request.method = "PUT". I want to config my HTTP ...
4
votes
1answer
251 views

Prevent script execution as TimThumb exploit workaround

It's been a long time since I've done any web-development, and I never needed to administer a server myself. However, I can read manuals with the best of them, and when someone needed advice regarding ...
4
votes
1answer
92 views

Serve 404 error, if typing not exact URL

At the moment, when I type: xyz.lo/abc.php/123 in my webbrowser, Apache serves the same page if I were typing xyz.lo/abc.php Unfortunatelly relative links present in HTML won't work with the ...
4
votes
3answers
2k views

using .htaccess to redirect .asp to .php?

Ahoy all! I've been racking my brain with this one. I basically just converted all of my pages from ASP code to PHP code. Kept the same filenames. So, here is the htaccess code I have so far, but ...
4
votes
2answers
3k views

How to write a generic .htaccess file rule, regarding RewriteBase

The following rule in my .htaccess works just fine for routing calls to index.php: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] However, this does not ...
4
votes
3answers
2k views

Session cookie being dropped when moving under the SSL

The short version: I've got a session cookie being set on a dev site but it's not being picked up when I move to the SSL (so the shopping cart empties when you go to the checkout). When it's set on ...
4
votes
2answers
7k views

Setting folder to be writable by apache/php in windows?

I have a local test server, and I am attempting to write a file with PHP. I am getting a message that the folder (../uploads/) does not exist or I do not have permission. My directory structure is ...
4
votes
4answers
404 views

Blogging platform for private/family blog? [duplicate]

Possible Duplicate: Which Content Management System (CMS) should I use? I am trying to setup a blog to be used for our family. This blog will not be open to the public and family members ...
4
votes
1answer
8k views

Properly force SSL with .htaccess, no double authentication

I'm trying to force SSL with .htaccess on a shared host. This means there I only have access to .htaccess and not the vhosts config. I know you can put a rule in the VirtualHost config file to force ...
4
votes
5answers
654 views

Is there an easier way to implement 301 redirects when converting a site to WordPress

I have just converted a website to WordPress. The old site has hundreds of hard-coded html files, and the new site does not match the old site's directory structure or file naming system (bad SEO in ...
4
votes
1answer
57 views

Statically mapping a PHP script to another script using an .htaccess file results in 404 errors

After having read a lot of posts on the topic of URL rewriting, I still remain stuck with 404 status errors. My goal: A 'static' rewrite of URLs, as follows (user clicks or enters the one ...
4
votes
1answer
173 views

Best way to protect public facing development environments?

We're in the process of setting up individualized dev environments for our developers. All of our developers are remote and we don't have a VPN or anything to bring this in house. But here's the ...
4
votes
1answer
2k views

When is the leading slash (/) needed in mod_rewrite patterns?

Here is an example from the Apache documentation for enforcing canonical hostnames: RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/?(.*) ...
4
votes
1answer
190 views

Do Dynamic Subdomains Harm SEO or not?

I am establishing a new website for just resumes, and I structured my htaccess as to provide dynamic subdomains as: marketing.resumedomain.org/index.html sales.resumedomain.org/index.html ...
4
votes
1answer
392 views

How to organize /var/www/ for multiple users and vhosts in apache

I've been creating new directories for each site in the var folder like this: /var/www -- localhost -- owned by localuser:www-data (+setuid/setguid) /var/www-somesite -- somesite.com, ...
4
votes
1answer
342 views

Apache KeepAlive - why should I ever need it?

I've read several blogs about turning KeepAlive off in apache. When I had it turned on, and a spike in traffic, people started timing out, or had to wait +10 seconds for a page load. However, when I ...
4
votes
2answers
44 views

Determining if a visitor left your server

We have an Apache server running a PHP website. The site is an e-commerce shop. We currently use Barclays as the payment provider but are seeing a lot of customers drop out at the point at which we ...
4
votes
1answer
682 views

Apache Virtual Host different depending on client ip?

What I'm trying to accomplish is: 1. A person, with IP 192.168.1.5 loads my webserver (192.168.1.2) and reaches htdocs/ 2. Another person, with ip 192.168.1.6 does the same request, and reaches ...
4
votes
2answers
808 views

How does the web server choose between unicode and utf-8 for accented characters?

I have a web server with my ISP which replaces accented characters in URLs with their unicode values: for instance é (eacute) is translated to %e9 (dec 233). For testing locally I use EasyPHP which ...
4
votes
1answer
791 views

Password protect an alias virtual directory

I have a main domain being hosted through CPanel. I also have a sub-domain that I would like to appear as a path under the main domain instead of as a sub-domain. So I have: http://example.com/ ...
4
votes
2answers
335 views

.htaccess URL rewrite [closed]

I used to have a rewrite rule to RewriteRule ^([^/]+)\.htm$ index.php?c=$1 [NC] RewriteRule ^([^/]+)\.htm/([0-9.]+)$ index.php?c=$1&amt=$2 [NC] Now, I have to change to RewriteRule ...
4
votes
1answer
872 views

XAMPP - Unable to serve files larger than ~30MB [closed]

I'm developing a site locally with XAMPP on Windows 7, and as far as media is concerned, I'm unable to play media files that are larger than 30MB or so. Both video and audio files (MP4 and MP3 ...
4
votes
2answers
4k 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 ...
3
votes
4answers
2k views

How can i check how many users can visit my website at the same time?

i have my website on a shared webhosting account. I would like to check how many people can visit my site at the same time without the server slowing down or crashing. I don't have SSH, if that makes ...
3
votes
2answers
490 views

Apache Rewrite Rule non-www to www + http to https + remove trailing slash

I would like to accomplish the following: rewrite non-www to www redirect from http to https remove trailing slash e.g. http://example.co.uk should redirect to https://www.example.co.uk How ...
3
votes
2answers
2k views

How to enable compression in WAMP installed on Windows Server?

How to enable compression in WAMP running on Windows Server 2008? I searched the net and I followed these steps given here: http://www.zigpress.com/2009/04/09/enabling-gzip-on-wamp/. But after ...
3
votes
1answer
186 views

Stop Apache serving filetypes

Preferably using .htaccess files, though .conf files are an option, is there any way to stop Apache serving certain filetypes? For example, .db shouldn't be served for obvious reason (privacy and ...
3
votes
3answers
2k views

Interpretation of empty User-agent

How should I interpret a empty User-agent? I have some custom analytics code and that code has to analyze only human traffic. I have got a working list of User-agents denoting human traffic, and bot ...
3
votes
1answer
351 views

How do I normalise a URL from a folder to a subdomain?

I have a mybb forum hosted at a folder inside my site, which can also be accessed via a subdomain. I would like to configure it so that if someone would enter the folder it would automatically be ...
3
votes
1answer
536 views

Disallow all user agents except one using .htaccess?

I've been struggling to get this .htaccess working. The aim is to disallow all user agents besides my app. The app sends a GET request with a user agent of lets say 'AcmeUpdater'. Whenever I try to ...
3
votes
2answers
367 views

Apache HTTP redirect from a URL list

One of my web applications will be completely replaced by a new system. All URLs will change and thus external links would break. I want to setup Apache httpd to answer with proper 301-redirects to ...
3
votes
1answer
811 views

Apache show file index as utf-8

I'm on a shared hosting which runs Apache on a Windows server. I am running Linux and I have uploaded some files that should be accessible directly via a public URL (that is known only by a few ...
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 ...
3
votes
1answer
729 views

How to implement user-friendly paths in PHP without creating a file or directory for each page?

NOTE: My terminology may not be entirely correct. I believe StackExchange does something like what I am asking, in case this can make things clearer. Using PHP on Apache, I would like to handle URLs ...
3
votes
4answers
155 views

Question about mod_rewrite rule for redirecting failing pages

I'm setting up a mod_rewrite rule that redirects failing pages to a custom "Page Not Found" page. This is with WordPress. I've used an online tutorial from the Apache site and so far my rules look ...
3
votes
1answer
46 views

Which domain should I authorize in my .htaccess to let google spreadsheet access files on my site

I use google spreadsheet feature that allows one to let an image be the content of a cell. The cell is defined by: =image("http://www.example.com/my-pics/my-pic.jpg") It works pretty well. But, I ...
3
votes
1answer
267 views

An apache injection attack?

I encountered a novel (to me anyway) form of injection attack in one of my logs login as <!--#exec cmd="ls .."--> Which looks like someone it trying to trigger sever side includes on an ...
3
votes
3answers
322 views

Apache log naming conventions

I run 30+ sites out of my dedicated server (running CentOS). Some of these are subdomains. I currently use this pattern as a log file naming convention, in /etc/httpd/logs: site_com-error_log ...
3
votes
2answers
984 views

Good Book for Managing a Linux Web Server?

I'm being thrust into the role of managing my own web server. I will have access to some managed support, but I need a comprehensive resource I can turn to that covers: command line basics, apache and ...
3
votes
3answers
3k views

Enable gzip compression on Bluehost?

My website is loading large (~3mb) SVG file with jQuery. It takes quite a while therefore I decided to enable gzip compression. I have a hosting account with Bluehost which supports custom .htaccess ...