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)

1
vote
1answer
204 views

Apache redirecting: reason unknown

I have a simple php script. The script is not important. It just prints out $_SERVER. When I request an URL like www.server.com/?ref=bar everything is fine. However if the request contains something ...
1
vote
1answer
91 views

Is it possible for a web-server to send more files than requested for, and have the browser accept them?

I've created a basic web server for a school project, and it serves static content without a problem. I thought of having the server parse all htm/html files for links to .js/.css/image files, and ...
2
votes
1answer
108 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 ...
0
votes
1answer
501 views

How can I prevent people from looking at a listing of files in parent directory if I haven't uploaded index.html? [duplicate]

Possible Duplicate: How to restrict the download of all files in a folder? I haven't uploaded index.html or index.php to my root directory. How can I prevent people from looking at a ...
2
votes
1answer
441 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
1
vote
1answer
1k views

URL Rewrite to subdomains?

say i have a website with /article.php?id=1&category=Minecraft&Name=Lorem+Ipsum and /topic.php?category=Minecraft how would i setup url rewrite to make the topic pages being ...
3
votes
1answer
555 views

How can I make my binary file is served as binary and not text when user choose “Save Linked File As…” in Safari?

I'm serving a binary file (.IPA) with Ubuntu/Apache 2.2. When I have chosen Save Linked File As... in Safari, it says it's text file. And it guides me to add .txt extension. However it does not add ...
1
vote
1answer
224 views

Apache Redirect based on directory name

I'm trying to use one install of Kohana to manage two separate sites rather than just duplicate the install. I have directories like this: applications/ app1/ app2/ The .htaccess I have ...
2
votes
2answers
1k views

Redirect all traffic to construction page except my IP in .htaccess

The title pretty much says it all. I want to direct all traffic to an under construction page except for traffic originating from my IP address so I can move a large development site into production ...
2
votes
1answer
440 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 ...
1
vote
2answers
258 views

Mod rewrite rule question/help

I have the following ruleset in my .htaccess file which basically rewrites my php pages and makes them appear as subfolders, so for example, http://www.mysite.co.uk/about-me/ points to ...
0
votes
1answer
101 views

Is there a minimal, pre-built solution for hosting a large collection of files?

My Google-fu has failed me on this one. Every time I search for something like this all I get is a bunch of vulnerability reports. I feel like this should be pretty straightforward, but I'm not having ...
0
votes
2answers
2k views

How to configure virtual host to consider domain path in Apache [closed]

the following virtual host definition is working for an arbitrary url starting with "http://1.2.3.4:80/*" <VirtualHost *:80> ServerName www.domain.com DocumentRoot ...
0
votes
1answer
134 views

Apache webserver user setup and security issues

I have a server running Centos 5.6/PHP/MySQL etc that will only host one website all the time. New question Is there any security implication on leaving a single website hosted in the default ...
2
votes
1answer
2k views

Accessing server stats using PHP

There are over 10 stats packages installed in my server (AWStat, Webalizer, etc) and cPanel has an interface to show them in terms of visitors, bandwidth, popular pages, etc. It is possible to access ...
3
votes
1answer
779 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 ...
0
votes
2answers
183 views

rewrite rule if iphone?

just need one url on my site to check if its a mobile device and then rerite the url accordingly. want to rewrite; /play-reel/miranda-bowen/playpeaches-and-cream to ...
1
vote
2answers
3k views

Using CDN vs having your own static server, and how it's done?

I would like to speed up my site and am considering moving all static files and user uploaded content to a separate server. I have an option to use a CDN or to setup my own static server and serve ...
0
votes
1answer
328 views

Changing mod_rewrite “file exists” checks to not see directories as files

I have the following mod_rewrite rules set up: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php This works fine, allowing me to ...
0
votes
2answers
110 views

Disable serving specific files from web directory based on hostname used

I have very specific problem and I don't even know if I am asking at right place and if it is even possible. I have two domains, lets say domain1.com and domain2.com. Both domains share same root ...
1
vote
1answer
2k views

mod_rewrite causing too many redirects

The .htaccess we have in our document_root directory is as follows: RewriteEngine on RewriteRule ^posts/1/first-post-title$ /posts/1.html [L] RewriteCond %{REQUEST_URI} ^/posts/1 RewriteCond ...
2
votes
2answers
64 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 ...
0
votes
1answer
472 views

How would I setup Joomla to require or bypass authentication based on visitors IP address?

How would I setup Joomla to require or bypass authentication based on visitors IP address? I would like to setup a Joomla website that requires visitors to login, unless they are visiting from a ...
4
votes
4answers
448 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 ...
2
votes
1answer
112 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, ...
0
votes
1answer
869 views

Description column in Apache's directory listing

What is it for, and can you add a description manually? <meta name="description" content="didn't do anything"/>
0
votes
1answer
468 views

Configuring `mod_vhost_alias` to server subdomain-based websites

I am currently in the process of setting up an Apache server that will be hosting projects built from SVN using a continuous integration server. The problem is, however, that while I've managed to ...
3
votes
1answer
1k views

How do I save user uploaded files outside of the web folder but use them on my page?

I have read that one of the best things to do for security with user uploaded files is to store them outside of the web folder, as there is very little you can do to ensure that that jpg image the ...
2
votes
1answer
68 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 ...
1
vote
1answer
611 views

Adding custom handlers

I have a number of D language programs (.d extension) and a compile-and-run tool (rdmd)--I'd like to configure Apache (version 2.2) to handle URLs such as "mysite.com/d/hello.d" by running rdmd with ...
1
vote
2answers
424 views

What are some good Apache settings to use with wordpress?

My server has 756m of RAM. Every few days I get [error] server reached MaxClients setting, consider raising the MaxClients setting
1
vote
1answer
135 views

fully encrypt website using SSL

I had been trying to use SSL for the following site http://bit.ly/e8Lj32 , although the SSL certificate is signed properly by networksolutions , each time the pages are loaded it still displays an ...
2
votes
2answers
4k views

Apache httpd Problem

I am getting intermittent issues with my site. Pages often hang with huge loading times and sometimes fail to load. The httpd error logs contain the following: [Wed Feb 23 06:54:17 2011] [debug] ...
2
votes
1answer
465 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 ...
1
vote
1answer
658 views

Regex Needed to allow mod-rewrite rule to work either with or without trailing slash?

Given the following rewrite rule: RewriteRule ^user/([^/]*)$ /userprofile.php?user=$1 [L] How can I have it work either with or without a trailing slash? Bonus points, how can I verify ([^/]*) ...
3
votes
2answers
6k views

Rewrite for robots.txt and favicon.ico

I have setup some rules in which subdomains (my users) will default to where I have located the robots.txt, favicon.ico, and crossdomain.xml therefore if a user creates a site say ...
1
vote
2answers
2k views

How to add an exception to this rewrite rule

I need to change this so that one file in wp-admin is not forced through https: # add a trailing slash to /wp-admin RewriteCond %{REQUEST_URI} ^.*/wp-admin$ RewriteRule ^(.+)$ ...
0
votes
1answer
159 views

Propagaging Apache rules Automatically for all folders Beneath Root

my webroot folder /httpdocs folder contains a .htaccess file The first lines look like this: RewriteEngine on RewriteBase / AddDefaultCharset UTF-8 Options +FollowSymLinks -Indexes -ExecCGI # ...
2
votes
1answer
2k views

=~ (equal-sign tilde) and m“ … ” in .htaccess directive

I saw this bit of code on an old forum post: SSLRequire %{HTTP_HOST} =~ m"\.secure\.powweb\.com" And I was just wondering what the =~ and m" ... " meant. I've been searching online and in the ...
5
votes
1answer
9k 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 ...
1
vote
3answers
1k views

Adding 'Last Modification Date' to HTML pages

I have a personal website that has around 4 - 5 HTML pages that I modify on a local editor (Kompozer) and then upload it to my website running on Apache. I have seen many a times, pages have the ...
0
votes
1answer
1k views

Rewrite URL to a PHP script with parameters

I'm trying to create a service that you give it a URL like http://myhost.com/34.png and it will return the result of the script http://myhost.com/create_image.php?count=34. I know this is possible ...
1
vote
2answers
194 views

What analytics software to use for small Apache served website with banners not from Google

I'm planning to run a small website using Apache (and other) server(s). The website supports configuring different banners for different pages dynamically. The banners are not from Google but ...
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
558 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" /> ...
0
votes
1answer
500 views

Redirecting dynamic pages to static pages URL

I decided to convert all my dynamic pages to static pages URLs. I used to have "/contactUS.php" and now I want the page to be served as "/contact-us". I used to following rule n .htaccess: ...
1
vote
1answer
927 views

Enforcing a specific order for cookie headers

We have an application that cares about the order of cookie headers. It shouldn't, since this isn't mandated by the standards and indeed we're getting the headers in various different orders So we ...
3
votes
1answer
416 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 ...
7
votes
4answers
264 views

Is there an SVN UI for hosting server?

We are considering upgrading to either a dedicated or cloud server. What I would really like is for the hosting account to have SVN installed on it. With a UI that I can use. So when I make a change, ...
0
votes
1answer
869 views

Apache 2 virtual host configuration for subdomain redirection

I'm trying to set up a mail subdomain on my site that will simply redirect to my Google Apps mail account. I thought I could use the Apache 2 vhost configuration below, but it's not working: ...