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
0answers
5 views

Excluding a file from an IP block [duplicate]

I have recently converted a pre-2.4 configuration to Apache's new authorisation configuration but ran into a problem/misunderstanding concerning more than one RequireAll block. What I am basically ...
1
vote
1answer
192 views

Virtualhost config: routing and wildcard usage

My VirtualHost config is below: <VirtualHost *:80> ServerName www.example.com ServerAlias example.com DocumentRoot /var/www/example/html </VirtualHost> I ...
1
vote
0answers
22 views

Trying to unload unnecessary modules from apache but don't know which

I have apache 2.2 with whm/cpanel installed on my server. When I look at the loaded modules list, I see: core_module (static) authn_file_module (static) authn_default_module (static) ...
1
vote
0answers
29 views

Separate multiple domains with htaccess (solution works on one hosting, not on another)

I have two different domains on one VPS. It's Apache 2.4.7, I remember trying long to set up name based Virtualhosts on localhost to find out Apache Virtualhosts are not supported anymore. (I cannot ...
1
vote
2answers
37 views

best apache log file permissions on cpanel server

In an effort to protect my site from bad bots including ridiculous hackers that can login to the server, I want to secure access_log and error_log as much as possible without breaking apache or ...
0
votes
1answer
14 views

Is a blank really a directory when dealing with mod-rewrite?

I spent about 20 minutes wrapping my head around this, and finally came to a solution but did not know why it worked. The important lines (as it relates to this question) in the apache configuration ...
2
votes
1answer
46 views

Wamp Server on local machine responds to ping but port 80 comes up as closed

I recently registered the domain politicsapp.us with GoDaddy and I am trying to set up a server on my local machine with WampServer. I set it all up, but when i type that into a browser, it gives me ...
0
votes
1answer
10 views

how to kill program that displays webpages in fastcgi/apache

I'm beginning to think PHP contributes to extra milliseconds of waiting time. After all, my website is mostly meant for showing photos and I like to have things work fast and so does google. I was ...
2
votes
2answers
110 views

Forcing HTTPS and WWW with apache

Apache does not force HTTPS in a subfolder of a folder, but it works in the first level subfolders. Here are all the HTAccess snippets I have tried: RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"' ...
0
votes
1answer
44 views

Preventing phpMyAdmin hacks

I recently saw an unexpected error in my error log, and upon investigating, found it repeated many times. What are the deviants trying to accomplish, and is there any risk of them accomplishing it. ...
0
votes
0answers
16 views

Godaddy Plesk domain forwarding to apache application

I am trying to configure my domain to forward to my application running on apache server (on the godaddy server). I'm using Plesk control panel to setup my domain forwards. In the Plesk CP, I've set ...
2
votes
1answer
417 views

Remove fb_action_ids of the URL with .htaccess

Sadly my website host will not let me have more than one .htaccess and therefor I am forced to include all rules for path parent and child virtual/physical URLS. My directory tree is as follows: ...
1
vote
1answer
39 views

APACHE mod_rewrite add query string to URL

Using mod_rewrite how can I change the current URL format: From: https://example.com/something/NAME-IN-CAPS/phonebook.xml To: https://example.com/anything/whatever/phonebook.php?name=NAME-IN-CAPS
2
votes
2answers
103 views

How to make mod_rewrite work transparently?

Following is the content of .htaccess file <IfModule mod_rewrite.c> Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ...
0
votes
1answer
2k views

Mod Rewrite not working

I am trying to get the URL www.example.com/blogs/<displaynamehere> to show what is in the directory at www.example.com/blogs/blog.php$display=<displaynamehere> So thanks to the people ...
1
vote
1answer
1k 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 ...
2
votes
3answers
298 views

How to use .htaccess to show smarter URLs

I'd like to ask how can I call the page www.domain.com/index.php?page=somepage and make the browser show the user in the URL bar the address www.domain.com/somepage/? How do I do that trick?
1
vote
1answer
2k views

Using mod_rewrite to send all requests to a certain document

I want to temporarily redirect all requests for a site to index.html, using Apache only. Is this mod_rewrite approach going to work, and is it the right way to do it? RewriteEngine on RewriteRule ...
10
votes
2answers
7k views

htaccess execution order and priority

Can anyone explain to me in what order apache executes .htaccess files residing in different levels of the same path and how the rewrite rules therein are prioritized? For example, why doesn't the ...
1
vote
2answers
86 views

RewriteRules targeting a directory result in a gratuitous redirect

I have a standard CMS-like RewriteRule set up in my .htaccess: RewriteRule ^(.+)$ index.php?slug=$1 Let's say I have a directory called foo in the root directory. For some reason, if you hit the ...
3
votes
3answers
2k views

Using env variables with RewriteRule and ErrorDocument

I'm having problems with the following config on my Apache server to Rewrite some URLs. SetEnv PATH_TO_DIR /directory RewriteRule ^%{PATH_TO_DIR}/([a-zA-Z0-9_\-]+)/([a-zA-Z0-9_\-\.]+)/?$ ...
4
votes
1answer
759 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 ...
0
votes
2answers
67 views

Disabling If-modified-since / if-none-match on web server for some files

What I want to do is try to get search engines to rescan my sitemap files (plain xml files stored on server). It did recently attempt to access it but it received a not modified response (HTTP status ...
5
votes
3answers
4k 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 ...
2
votes
1answer
3k views

http://www.example.com/http://www.example.com/ in Apache log?

I run a website, let's say www.example.com. On it I have a path and file, say www.example.com/path/file.html. The Apache log lists GET requests like: GET /path/file.html HTTP/1.1 Which is correct, ...
0
votes
1answer
300 views

Changing domain name - what are the practical steps involved [duplicate]

Possible Duplicate: How do I rename a domain and preserve PageRank? I launched a website a couple of years ago, bright eyed and bushy tailed, with dreams of conquering the world. ...
0
votes
2answers
67 views

Moving website on same IP from one domain TLD to another different using 301 redirect

If we want to move a website from one TLD to another, e.g example.com to example.org, while preserving SEO. We intend to do the following: Point both example.com and example.org to same IP where ...
1
vote
2answers
331 views

Plesk all hosted websites stopped

All the hosted websites on my VPS stopped working yesterday. I have not changed any settings since a week. The websites result in an ERR_CONNECTION_REFUSED. In my time zone, the websites stopped ...
1
vote
0answers
20 views

Vhost sends www.* to another domain

I created a virtual host at my server to host multiple sites, but I got a few unexpected problems. One sites doesn't gets recognized by the server and is redirected to another domain on the server, ...
3
votes
3answers
72 views

How to change document root of main domain in cPanel shared host?

I am in a shared host that I have basic cli access. Inside public_html/ I host several addon domains, each in its own dir. Is it possible to make my main domain's document root inside another folder ...
1
vote
0answers
14 views

Startup Script for LAMP in Google Instance Templates

I am new to Google Cloud and i want to set up an Instance Template and then create an Instance Group using the template. After creating the group, i want to enable "Network Load Balancing". During ...
0
votes
1answer
58 views

SEO advantages of /blog when forwarding via ProxyPass

We've had requests from clients via their SEO companies to host blogs accompanying ecommerce sites on theirdomain.com/blog rather than on - for example - blog.theirdomain.com As we look after their ...
4
votes
2answers
368 views

Ditch cPanel / WHM in favour of manual setup

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 ...
1
vote
2answers
531 views

Apache Per User Directory Not Found

For some reason the user directory I have for my server has stopped working whenever I go to http://server/~user/public_html/ I get a 404 error. The files are there on the ftp, but they're not showing ...
2
votes
2answers
2k views

Have UserDir enabled but also want to rewrite url if called differently

I am setting up a new server for our users to use have have personal webspace on. I have in my httpd.conf of apache the directives for UserDir as follows UserDir disabled root UserDir public_html ...
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 ...
2
votes
2answers
2k views

Rewrite in Mediawiki, remove index.php, .htaccess

I've just installed Mediawiki on Apache and I want the URL should be: localhost/Main_Page/ localhost/Special:Recent_Changes ... instead of: localhost/index.php/Main_Page/ ...
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 ...
0
votes
0answers
100 views

Godaddy linux hosting The PDO extension is required for this adapter but the extension is not loaded

I'm getting following error on GoDaddy economy linux hosting. How to fix that. The PDO extension is required for this adapter but the extension is not loaded Error can be found at following ...
4
votes
1answer
1k 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 ...
0
votes
0answers
12 views

Can multiple websites/domains be hosted by the same Platform as a Service [PAAS]?

Sorry if this is trivial, but I am still learning the basics of PAAS, so I appreciate your patience... Can separate websites both be hosted by a single PAAS (used via single account with a given ...
3
votes
1answer
339 views

.htaccess redirect not working for web alias

I have two domains at one.com: example.com and example.de I would like to redirect from example.com to example.de/en I wanted to use an A record so that example.com points to example.de and then use ...
1
vote
0answers
28 views

apache/php settings to optimize website for long distance clients

Contrary to what many suggest, I decided to increase my keep-alive in apache from 1 to 5 seconds and to a maximum of 100 keep-alive requests per keep-alive connection from any one IP address. I also ...
2
votes
1answer
334 views

Trailing slash on Root folder - Is it possible to remove it without 301?

I have noticed something very strange on the site I'm working on. We currently only show http://www.example.com. The URL http://www.example.com/ (slash at the end) gets 301'd to ...
2
votes
0answers
107 views

mod_proxy(_html) and a buggy Webserver (delivers text/html for JSON data)

We've got a Webserver that answers to AJAX requests by sending JSON Data to the client. Problem is that the JSON Data has the content-type "text/html" instead of "application/json" (it's an Oracle ...
0
votes
0answers
10 views

ZF Tool 1.6.0 Windows 8 Permissions

I'm currently installing the Zend Framework onto a local 64bit Apache install with appropriate PHP ver. Localhost works fine and Apache Monitor is reporting correctly and identifying PHP just fine. ...
2
votes
1answer
104 views

Internal Server Error 500 .htaccess

For years, I have been using the following .htaccess for PHP to execute within HTML on Apache at GoDaddy: AddHandler fcgid-script .html FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .html A few days ...
2
votes
1answer
152 views

.htaccess file not caching

I have read several guides for how to write the htaccess file for caching but with no success. I asume I wrote something wrong and need some help on finding what i did wrong. Here's my htaccess file: ...
1
vote
1answer
46 views

Apache .htaccess mod_rewrite: use of [NC]

I see tons of .htacces examples containing the [NC] flag (NoCase = case-insensitive) For example the famous h5bp page use the [NC] flag a lot: ...
0
votes
0answers
36 views

Hosting htaccess redirect subdirectory to subdomain

I have simple hosting plan with domains included: Now I have the domain.com and seconddomain.com now I want to use all that domain and give them his own root directory. If I use the controle panel ...