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)

0
votes
2answers
9k views

Get the number of concurrent users in Apache?

We want to know how many concurrent users the apache is serving at one time? Can I do it by installing some statistics tools? I tried webalizer but it only shows hourly hits, not the number of users. ...
0
votes
1answer
160 views

Most common Apache and PHP configuration for portable Web Applications

I always create web application using PHP but I always distribute and deploy my works to different kinds of server platforms and web server configurations. Thus I always encounter problems in ...
1
vote
1answer
1k views

Include number and date in Apache log file names

I'm trying to figure out how to include the current date and the IP number of the current host inside the Apache log file names, but I fail how to see how I can do that. Part of that has to do with ...
0
votes
2answers
1k views

.htaccess rule not working without HTTP redirect [R]

I am using the following .htaccess with Wordpress to remove index.php from the visible URL. This works but forces an http redirect so the URL changes in the browser window. If I remove the [R] it no ...
0
votes
1answer
213 views

Windows - Apache HTTP server - access to other directories on local FS

I have a Windows 7 laptop with an installation of the Apache HTTP server (just for development purposes, not accessible from outside). My problem is that I have my web applications located in two ...
6
votes
3answers
4k views

What are the pros and cons of running PHP as an Apache module or a FastCGI?

My VPS is giving me the option between running PHP as an Apache Module or a FastCGI. How should one make this decision? Performance? Security? Ease of use? Compatibility? I'm using PLESK.
2
votes
2answers
397 views

Image Hot-links & Google's Instant Previews

I'm trying to adjust my site: 1. stop Image Hot-links 2. block Googlebot-Image (because I do not want my images to be searchable) 3. allow Google's Instant Previews I've tried this but the Instant ...
2
votes
2answers
669 views

Nginx frontend, Apache backend, and Magento

I've got a Magento installation, which works perfectly from a customer's point of view. However, when you try and do batch tasks with the admin, Nginx often closes the connection to the browser early, ...
1
vote
2answers
97 views

reduplicate request in apache logs

1. Symptom: I found lots of requests for the same resource on Apache logs, like this: /image/default/dHtmTreeImg/iconUnCheckAll.gif HTTP/1.1" 200 120 10.83.140.23 - - [29/Dec/2011:08:50:10 +0800] ...
0
votes
4answers
182 views

DNS configuration on website makes it available only some of the time

The DNS configuration on my website is periodically dropping visitors and I have no idea why. Most of my website's visitors are seeing it fine, but in the last weeks more and more visitors report ...
2
votes
1answer
362 views

Configuring directory access on a server. .htaccess and alternatives?

I have written a small PHP package/site-template (should I say). It contains a directory data/ that contains some important files that the users should not be able to see. These file should however ...
1
vote
1answer
98 views

Recommended way on implementing 301 redirects

I am rebranding a website, which involves changing the domain name. I want to know the best way of redirecting traffic to the new domain, using 301. Ideally, I will do this at the webserver (Apache) ...
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 ...
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 ...
2
votes
1answer
85 views

Why is this mod_rewrite redirecting my domain?

I'm trying to redirect all URLs past the "/" of my domain to an old.mysite.com version, but leave the mysite.com itself alone. For example, "mysite.com" -> "mysite.com", but "mysite.com/some-url" -> ...
1
vote
1answer
1k views

Apache rewrite rule for all pages after domain name

I asked this question on stackoverflow.com: http://stackoverflow.com/questions/8466321/apache-rewrite-rule-for-all-pages-after-domain-name Sorry for redirecting, but I wasn't aware of ...
4
votes
4answers
8k views

How do I hide the port in my URL?

What am I missing? If I go to mysite.com:9999 I get my site, but not mysite.com Obviously the users shouldn't need to type in the port, so what do I need to do? I'm not really trying to hide the ...
2
votes
1answer
902 views

.htaccess file ignored on Ubuntu Apache 2 server

I'm having a problem with an .htaccess file on a newly installed Ubuntu server running Apache2. The .htaccess file in the directory where the WordPress files are located isn't being take into account ...
5
votes
1answer
12k views

How to pass GET parameters to rewritten URL?

I have an .htaccess rewrite rule like this: RewriteCond %{SCRIPT_FILENME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^search/(.*)$ search.php?q=$1 What this does is, if someone visits ...
1
vote
2answers
8k views

NginX redirect to PHP file if image does not exist on file server

This is what I am trying to do. I am not familiar with Nginx enough to create custom rewrite rules like you can with Apache. It would be greatly appreciated if someone could help me with the Nginx ...
2
votes
1answer
377 views

Issues with timed out downloads via TomCat?

We get, in our opinion, a lot of failed download attempts and want to understand why. We offer downloads via an email link (typical): http://www.semanticdesigns.com/deliverEval/<productname> ...
1
vote
2answers
404 views

Conditional AddHandler Directive

Is it possible to conditionally call AddHandler in the .htaccess under Apache (2.x)? My present situation requires that a certain AddHandler is needed by one production server but that one breaks the ...
0
votes
4answers
6k views

Chmod 777 to a folder and all contents on Apache web server

I have just got new hosting for my website and I have a directory /www which I put all my website files within and a folder in that directory called 'store'. Within 'store' is several files and ...
3
votes
1answer
184 views

Looking for a step by step guide to URL re-writing with mod_rewrite and other methods

I'm looking for step by step resource about how to rewrite URLs and have a few specific questions. I've read the documentation on mod_rewrite in Apache, but I still find myself a little lost. If ...
2
votes
1answer
321 views

How do I serve dynamic WebDAV directory listings using Apache

I can use mod_rewrite to redirect /dynamic.php/xyz.php to /dynamic.php and then server different content for xyz.php using $_SERVER - where xyz.php is any arbitrary filename requested by a client. No ...
1
vote
2answers
41 views

Blocking path scanning

I'm seeing in my access log a number of request very suspicious: /i /im /imaa /imag /image /images /images/d /images/di /images/dis They part from a known resource (in the above example ...
1
vote
2answers
191 views

Host multiple domains with Apache

Is there a way to host multiple domains with Apache web server without making any changes to the DNS server? I have full control over the Apache server and no control over the DNS server.
1
vote
1answer
36 views

Apache redircting when it shouldnt

I have inherited a LAMP server with a lot of customization. I want to enable mod_status in apache to get some monitoring of apache started. Problem is, with mod_status enabled in the httpd.conf, I am ...
1
vote
1answer
1k views

Symbolic link not allowed or link target not accessible: /var/www on Ubuntu 11.04

I am getting a 403 when i access http://mayfieldafc.local/ upon looking in the Apache logs I am getting: [Wed Nov 16 12:32:59 2011] [error] [client 127.0.0.1] Symbolic link not allowed or link target ...
2
votes
1answer
411 views

Error 500 on phpMyAdmin via https from “self-signed certificate”?

I have used Cpanel to generate and install a self-signed certificate for HTTPS and now that I have installed phpMyAdmin once I access phpMyAdmin via HTTPS it throws out an error 500 message. Why is ...
0
votes
4answers
1k views

Configure PHP and Apache in Windows 7

I installed Apache successfully on a Windows 7, 32bit system. It showed "It works" in the webpage. I also configured <?php phpinfo(); ?>file as info.php. But when I tried to open ...
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 ...
7
votes
3answers
1k views

Does using LiteSpeed instead of Apache speed up WordPress?

I've read that Litespeed is a lot faster than Apache. I use mostly WordPress and Joomla sites and am looking for a new server. Will I see a significant increase in speed of WordPress being on a ...
3
votes
2answers
1k views

Apache2 virtual host localhost doesn't render CSS when offline because of absolute path

I'm running apache2 on a local server. I use no-ip.com to route DNS to that server through my cable modem. While disconnected from the web and working on localhost my web pages don't render the CSS ...
2
votes
1answer
37 views

Is minimising the number of Include directives in Apache config faster?

In my Apache config file for domains hosted on my site, I have a couple of Include directives containing redirects: <VirtualHost 127.0.0.1:8080> Include /path/redirects1.conf Include ...
3
votes
1answer
3k views

Extend depth of .htaccess to all subfolders and their children

I need to be able to use .htaccess in all subfolders for full depth. E.g. I have .htaccess in public_html folder: \public_html\.htaccess How I make it to work for the folder small as well? ...
1
vote
2answers
914 views

getting mod_rewrite to work on Mac OS X

I'm trying to get mod rewrite to work on my Mac. This is the content of the .htaccess file: <Files *\.ini> order allow,deny deny from all </Files> RewriteEngine on RewriteRule .* ...
0
votes
2answers
698 views

Monitoring load/resource drain of individual scripts on apache

We have a website and for some reason lately its been grinding our server to a halt. It has had a spike of traffic, but even still that spike is only possibly 1k or 2k. We installed eAccelerator PHP ...
2
votes
1answer
61 views

How do I set up server logs?

I can't find the server access log (I think its because I have free hosting) which shows who have recently visited my website. How can I set it up manually? I have a Apache server.
7
votes
1answer
306 views

403 error on index file

When I try to access index.py in my server root through http://domain/, I get a 403 Forbidden error, but when I can access it through http://domain/index.py. In my server logs it says "Options ExecCGI ...
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
290 views

Where is my Tomcat running on my virtual server?

According to what I know; Apache and Tomcat are listing on different ports by default. If I have both of them running locally then: localhost -> Apache home page (port 80) localhost:8080" -> Tomcat ...
4
votes
6answers
1k views

Is it dangerous to keep Thumbs.db on a web server?

Windows Thumbs.db system files that are in most of folders were uploaded with all other files from the localhost to the server. Is it dangerous, if you forget to delete them on the server? I am on ...
2
votes
1answer
220 views

Put files outside of directory, so none can access it (Apache, PHP, MySQL)

I have a file structure like this: public/admin public/some folder includes/ I set up a sub-domain page.mysite.com and I pointed the directory to be mysite.com/page/public/admin. I thought that ...
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 ...
0
votes
1answer
1k views

Most efficient and SEO & Google Analyitics Friendly way to redirect

I am looking for the most efficient way to redirect users to different web pages on my server using a keyword off of the main domain. So http://www.example.com/keyword might take you to a longer URL ...
0
votes
1answer
546 views

lfd on ns3.domain.com: Excessive resource usage: Account (26661)

We lease a dedicated server with the following specs: Dual Hyperthreaded Quad Core 12GB RAM 750gb RAID1 We recently upgraded from a Dual Core/2GB RAM due to server load issues. We are ...
0
votes
1answer
879 views

Override .htaccess from parent directory

I have a local LAMP stack (without the MySQL. LAP stack? Anyways..) and I am using this as a development environment for a production website. The site is placed in a sub-directory of the Apache2 ...
0
votes
1answer
260 views

How to force a web browser to interpret other file extension (but contains plain text) as a text file?

I'm currently engaged with a web based application that needs to show text files via directory listing in the web server (Tomcat). The text file has an extension of .inp and .trg, it seems that IE8 is ...
1
vote
1answer
258 views

Apache <Directory> blocks

I'm trying to make it so that the outside world can't access a specific section of my website. What I did was: <Directory /Library/WebServer/.../secrets/> Order deny,allow Deny from ...