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
4k views

What is wrong with this Apache httpd.conf file for vhosts?

What is wrong here? NameVirtualHost *:80 <VirtualHost *:80> ServerName www.apples.co.uk DocumentRoot /var/www/apples.co.uk RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.apples\.co\.uk$ [NC] ...
0
votes
1answer
1k views

Mod Rewrite not working

I am trying to get the URL www.mysitedomain.com/blogs/displaynamehere to show what is in the directory at www.mysitedomain.com/blogs/blog.php$display=displaynamehere So thanks to the people who ...
5
votes
1answer
354 views

How should incorrectly encoded URLs be handled?

Just recently noticed that some sites link with the URL incorrectly percent-encoded, to which my server (LAMP) responds with a 404 Not Found. For example, for a URL of mine like this: ...
0
votes
4answers
455 views

I want to park my domain www.b.com to www.a.com. if the user visits b.com, I want the browser url to display a.com

I want to park my domain www.b.com to www.a.com So far is working, but if the user visits b.com, I want the browser url to display a.com Is there a way around it?
2
votes
3answers
131 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 ...
0
votes
3answers
3k views

What are the causes of a 416 Error?

One of my visitors from my website informed me that every so often (quite rarely actually), when trying to visit my website, he gets a 416 Error: Requested Range Not Satisfiable I've never heard of ...
0
votes
1answer
149 views

Having hard time to hide directories on my site

i'm trying to hide some directories on my site by returning 404 not found error codes instead of forbidden, the problem is that the files in the directory becomes not available to php. how can i hide ...
2
votes
1answer
392 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} !\.[^/]+$ ...
5
votes
2answers
9k views

How can I diagnose an Internal Server Error?

I was trying to host a zend-framework project on new host provider. After uploading everything and configuring the database connection I have encountered Internal Server Error message. My service ...
0
votes
2answers
101 views

How to transfer a website hosted online to my Virtual Host

I'm doing some work on a webpage, meaning I gotta modify a few things. As a result of this I installed apache and all the things that come associated with it, and also installed Joomla, and I got ...
3
votes
1answer
757 views

Apache, www-data and custom user permission

I'm running an ubuntu server with apache and I have web directory which is owned by the user www-data and the group www-data. WordPress works great in this directory. It can auto update and I can ...
0
votes
1answer
109 views

can mod_rewrite be used for this problem?

We used to have a URL http://www.abc.com/index.php?itemID=144 which is moved to http://www.abc.com/index.php?itemID=1556 we want our users which are hitting the above url(144) to reach to 1556. ...
1
vote
1answer
35 views

Mod Rewrite change extention of a page

i want to mod rewrite change extension of any page to what i want. for ex. i want change index.php to index.abc is it possible with mod rewrite?
1
vote
1answer
135 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 ...
2
votes
1answer
461 views

Virtual Host under MacOSX not working

I have setup a virtualhost for MacOSX Apache installation. These are my steps: edit /private/etc/apache2/httpd.conf removing comment from: Include /private/etc/apache2/extra/httpd-vhosts.conf ...
0
votes
1answer
133 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/ ...
1
vote
1answer
61 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
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 ...
1
vote
1answer
44 views

Tricky mod_rewrite challenge

I list about 9,000 records on my little site. At the moment I'm showing them with a dynamic page, like http://domain.com/records.php?id=019031 But I'd like to start using meaningful URLs like this ...
0
votes
1answer
344 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 ...
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 ...
1
vote
1answer
181 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 ...
0
votes
2answers
167 views

How can I make a site with 1.300.000 pages?

Yeah I know, it's not a joke.....I really need some advice on how I could create a web site which could handle 1.300.000 ref. or more Currently I'm running a dedicated server with 2mo ram and 1.6 ...
0
votes
1answer
193 views

Apache log analytic's

Been trying for a while to get this script fully working I think I'm nearly there. Ok so I basically need the script to show 3 things, email address - Browser type - Time logged in. ...
6
votes
3answers
3k views

Where do I create the file .htaccess, in order to serve my HTML5 cache manifest file correctly?

From a post on http://diveintohtml5.org/offline.html (Wayback Machine Copy) Your cache manifest file can be located anywhere on your web server, but it must be served with the content type ...
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
2answers
865 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
4answers
1k 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 ...
0
votes
1answer
112 views

Grep directory name

Need a script to grep within a directory for folders named by emails (so looking for the @) to then search the apache logs to see if the email address grep'ed has accessed the website today. Then ...
3
votes
2answers
69 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 ...
1
vote
2answers
210 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
96 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 ...
2
votes
1answer
930 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.
1
vote
1answer
341 views

Apache rewrite returns error 500

I'm trying to figure out what I'm doing wrong with this .htaccess rewrite: Options -Indexes RewriteEngine on RewriteBase /test/site/ RewriteOptions MaxRedirects=10 RewriteCond ...
0
votes
1answer
3k views

“Rule caching” in .htaccess - How to force apache to re-read a modified .htaccess?

I am reorganizing the link structure of a dynamic php-based site of mine. What I am trying to obtain is: redirect old links onto new ones; create new RewriteRules for new links, since every 'link' ...
2
votes
1answer
372 views

Restrict SSL access for some paths on a apache2 server

I wanted to allow access to www.mydomain.com/login through ssl only. E.g.: Whenever someone accessed http://www.mydomain.com/login, I wanted him to be redirect to https://www.mydomain.com/login so ...
0
votes
3answers
72 views

RewriteRule was matching before migration, but now browser gets a 404 error

I have this URL rewrite rule in my .htaccess RewriteEngine on RewriteRule ^home$ home.php but when I try to reach awatag.com/home I get a 404 error. This rule worked perfectly before moving the ...
0
votes
1answer
359 views

How to use apache mod-rewrite to remove trailing semi-colon on cookie?

We have the following cookie set by a product: Set-Cookie: SSOCookie=T7ngsCmzC2FEq5p2a7o%3D; path=/; domain=.demo.com; We would like to use Apache to remove the trailing ; which doesn't match the ...
1
vote
1answer
572 views

Directory access control with Apache: do I need to use a specific .htaccess?

I have an Apache webserver, and in the Apache configuration, I have Alias /backups "/backups" <Directory "/backups"> AllowOverride None Options Indexes Order allow,deny Allow ...
4
votes
2answers
322 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 ...
0
votes
1answer
126 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 ...
3
votes
1answer
689 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 ...
2
votes
1answer
1k 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 ...
1
vote
2answers
2k 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
287 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 ...
2
votes
1answer
15k views

Apache: Virtual Host and .htacess for URL Rewriting not working

I have configured a virtual host in my local machine and every thing is working fine. Now I want to use SEO friendly urls. To achieve this I have used the .htaccess file. My virtual host ...
6
votes
2answers
157 views

Separating static/uploaded content from the site

I have a site where I anticipate to have a large amount of users. I've heard that it is a good idea to separate user content (uploaded images) and place them on a separate static server where lighttpd ...
5
votes
2answers
177 views

Can a 403 error ever be client side?

I've got a well-established web application. It's working for lots of people with a variety of browsers and platforms. But, there's this one guy... He's getting a "403 Forbidden" on his side, I've ...
4
votes
2answers
5k 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 ...
2
votes
1answer
3k views

Getting 403 Forbidden after changing webroot

I am running Ubuntu with Apache (LAMP stack). When I changed the webroot from /var/www to /media/data/www, I keep getting 403 Forbidden even after chmod-ing the directory + files to 777. What did I do ...