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)

2
votes
1answer
143 views

http request terminating early

I noticed that on some of my sites, images were occasionally not getting downloaded fully. After a bit of investigation it appears that it is not restricted to images - .css, .js etc were also ...
2
votes
1answer
662 views

Remove multiple trailing slashes in a single 301 in .htaccess?

There is a similar question here, but the solution does not work in Apache for our site. I'm trying to remove multiple trailing slashes from URLs on our site. I found some .htaccess code that seems ...
2
votes
1answer
306 views

Seeking .htaccess help: Converting multiple subdomains (both HTTP and HTTPS) to www.domain.com using .htaccess

I've been trying to get an answer to this question on other forums (the folks at SuperUser thought this was the place I needed to post) and via my connections, but I haven't gotten very far. Hopefully ...
2
votes
1answer
181 views

How can I point wildcard domains to a folder in Apache?

I am developing an app using PHP and deploying it on Apache on the Amazon AWS environment. This app requires to be made available to customers from their own chosen domain name? How can I achieve ...
2
votes
1answer
116 views

Should I upgrade from Apache 1.3.x to 2.x?

We are in the middle of setting up a new container to migrate our ever growing web app onto. Primarily to satisfy a security audit, but also to catch up and implement missing/outdated security. The ...
2
votes
1answer
425 views

Sitemap file getting double compressed

I have a script that generates my XML sitemap and writes it to the file sitemap.xml.gz - i.e. an XML file, compressed with gzip. This file is definitely written correctly as when I download it via FTP ...
2
votes
1answer
52 views

Finding out what features of regular expressions are supported by mod_rewrite in Apache 1.3?

Is there a particular regular expression engine that is used by mod_rewrite on Apache 1.3? I want to know so I can get a list of supported and non-supported features.
2
votes
1answer
590 views

Avoid the login popup when using http-auth

I have an Apache. Under the DOCUMENTROOT is a folder with an .htpasswd file for http-auth. If I open the browser and request the content in the folder I get an Popup to login. Is there a way to avoid ...
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 ...
2
votes
1answer
279 views

Replace 404 with 301 to other subdomain

We have two main subdomains on our site: www.example.edu and php.example.edu. Virtually all of our content is on www.example.edu, but there are a few standalone apps hosted on php.example.edu. ...
2
votes
2answers
459 views

Apache Rewrites not working due to Akamai

I have a website which is setup with akamai. My domain and subdomains are mapped onto an Akamai IP. I have written an Apache rewrite which does an internal URL X to another internal URL Y. This ...
2
votes
1answer
990 views

Subfolder non-www redirect

Is there a way to redirect a sub folder to no-www? What I use is: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] but this only ...
2
votes
1answer
849 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 ...
2
votes
1answer
309 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> ...
2
votes
1answer
287 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 ...
2
votes
1answer
386 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 ...
2
votes
1answer
60 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.
2
votes
1answer
204 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 ...
2
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 ...
2
votes
1answer
546 views

Magento - Unable to access remote site but able to access a simple index.html file

I'm building a store (magento 1.6.0.0-rc2) and have a home server to host the site. It is behind a modem/router with redirection of port 80 and 3000 active to server box. 1. I can access the ...
2
votes
1answer
393 views

Modify .htaccess to allow existing files without extension to be served

I have the following .htaccess: #If the requested URI does not end with an extension OR if the URI ends with .php* #(where * is optionally one or more numbers) RewriteCond %{REQUEST_URI} !\.[^/]+$ ...
2
votes
1answer
90 views

Issue with permanent redirect implementation

I have a tricky problem related to 301 redirections I badly need help with. I tried to implement these via .htaccess, but ran into trouble. The start of my .htaccess looks like this: SetEnv PHP_VER ...
2
votes
1answer
334 views

Opening up a static url when using Passenger WSGI with Django?

I'm currently developing a site hosted on dreamhost, using django, which is served up through passenge wsgi. Right now, all requests are being passed to the django app. I'd like to be able to serve ...
2
votes
1answer
931 views

Enable mod_rewrite on OpenSuSE 11.04

I have a problem on OpenSuSE 11.04. I configured apache and enabled mod_rewrite but it doesn't working. on every php file I get 403 forbidden error.
2
votes
2answers
63 views

I want to redirect anyHOST.anyTLD to www.anyHOST.anyTLD

I'm trying to find a generic enough modrewrite rule that will acomplish following: Redirect anyHost.anyTld to www.anyHost.anyTld Not mess with any other subdomains, for examle other.anyHost.anyTLD ...
2
votes
1answer
99 views

Issues trying to run PHP4 alongside PHP5

I’m trying to get PHP4 running under CGI alongside PHP5 as a module in Apache. Long story short, I have some legacy applications that aren’t running under PHP5 and they would take a while to rewrite, ...
2
votes
2answers
809 views

Need some help on tomcat URL mod_rewrite or mod_jk

I am trying to remove the context name from the URL of my server. Current URL - http://www.domainname.com/MyApp/ What I need to make is to make it available at - www.domainname.com/ So it is only ...
2
votes
1answer
66 views

When viewing an svn repository through Apache in a web browser, is there a way to specify an old revision in the URL?

I think the question says it all. I am using a server that exposes an svn repository through HTML, and am wondering if I can specify a previous revision of files when linking to it. I believe the ...
2
votes
4answers
71 views

dynamic url for member

It may be a very basic question. I am trying to user url of the form: "membername.example.com" but I have no idea what would be the steps to be performed. We are using apache web server. Thanks, ...
2
votes
1answer
479 views

Problem with Expires/Cache-Control Headers

I'm using Apache 2.2.16. I've got the following HTML file in my htdocs folder: <html> <link media="screen" type="text/css" href="/css/test.css" rel="stylesheet" /> ...
2
votes
1answer
168 views

show content on domain.com from a sub directory

I have a domain that looks like domain.com on the server files look like: <www> <mydirectory> <otherstuff> <asubdomain> index.html .htaccess ok, so when you open the ...
2
votes
1answer
515 views

What are the AllowOverride settings if you're hosted on GoDaddy?

I'm looking for the AllowOverride setting for GoDaddy hosting, does anybody know where I can find that?
2
votes
5answers
181 views

Apache URL rewriting not working

All .php files are rewritted before doing the below rewriting: test.php => test foo.php => foo I want to rewrite this URL http://www.testdomain.com/test?name=john&id=2&nick=doe to ...
2
votes
1answer
341 views

Apache htaccess results in files being downloaded instead of displayed

So I had this "beautiful" website that did exactly what I wanted it to do. Then I shut down my PC, reboot and...the pages just download now instead of being displayed. I re-installed XAMPP and ...
2
votes
1answer
47 views

Force url to use www [duplicate]

I'm confused about how to force my url to use www in the address. I have a .htaccess code like this: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f ...
2
votes
1answer
377 views

Setup basic proxypass in Apache

I have a web application that communicates to a web service deployed on the same server. The web app was written with Tibco General Interface and works well only when it is running locally on the ...
2
votes
0answers
92 views

How many connection can my website have? [closed]

As the traffic increased my website hangs quite regularly. The page visit is now averaging 50k per day. The static page loads fine, but when the page has mysql request it takes too much time to ...
2
votes
1answer
175 views

Is there a way to know if apache receives a request from a public IP not local to your country?

I'm looking for ways to know if an apache server receives a request , from another country (e.g germany) considering its a fair request (no spam , or proxies). I want it either to appear this as a ...
2
votes
0answers
441 views

RewriteBase has to change when using UserDir

I have setup our Apache server to use UserDir This mean our urls are: http://dev.server.com/~username/drupal/html/ Before our URLS were: http://dev.server.com/drupal/html/ In the 2nd case I ...
2
votes
0answers
275 views

Why is AliasMatch not working?

Here is what we have: Alias /assets/ "/home/virtual/public_assets/" AliasMatch ^/~([a-zA-Z0-9]+)/assets/(.*)$ /home/virtual/public_assets/$2 <Directory "/home/virtual/public_assets"> ...
2
votes
0answers
92 views

Replacement for DirectoryIndexRedirect for older versions of Apache

DirectoryIndexRedirect is available in version 2.3.14 and later. (mod_dir) Is there an alternative method for older versions? I have different DirectoryIndex directive sets for a lot of directories ...
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 ...
2
votes
1answer
1k views

How to avoid “chunked” Transfer-Encoding?

How to avoid chunked Transfer-Encoding ? Is there any benefit with this encoding? Below is what appears as part of Apache Web Server (V2.4) header message: Connection: Keep-Alive Content-Type: ...
2
votes
1answer
622 views

Apache Server-Side Includes Refuse to Work (Tried everything in the docs but still no joy) [closed]

Trying to get apache server-side includes to work. Really simple - just want to include a footer on each page. Apache 2.2: # ./httpd -v Server version: Apache/2.2.21 (Unix) Server built: Dec 4 ...
2
votes
0answers
97 views

Apache, Lighttpd, which one should I use? [closed]

Apache has always been described to me as the solution for hosting websites, but I have been using Lighttpd for many years now and seems pretty stable. What are the advantages of Apache towards ...
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" -> ...
2
votes
1answer
295 views

What to set for AllowOverride & Options

What is normally used as settings for both production or development servers for settings AllowOverride & Options? I will be needing to use .htaccess for WordPress so things like mod_rewrite etc
2
votes
3answers
285 views

Mod Rewrite question

Is there a way to rewrite http://localhost/embed/player.swf?file=http://www.youtube.com/watch?v=7yKDhm4_-90 to something smaller? or is there a way to change this into ...
1
vote
1answer
781 views

.htaccess RewriteRule $1 contains wrong value

I have a RewriteRule that is not behaving as I expect. I want site.com/author/fred to map to site.com/author/index.php?a=fred I have an author directory within the site root. The author directory ...
1
vote
4answers
490 views

Setting up a LAMP VM server for Development and Testing?

Info: I would like to set up a VM server on my local computer which will serve pages in the exact same way as my current hosting (but only to me on my local computer). I currently pay a big web ...