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
21 views

Lowercase 301 Redirects - Site Assets Disappear

I am trying to force all my URLs to be lowercase, but in doing so, I lose the connection to all my site assets. I've added this to my in my .conf file: RewriteMap lc int:tolower And this to my ...
2
votes
1answer
29 views

Redirecting “ugly” urls to pretty ones?

For example to display /id/123 for /urlugly?id=123 I can do RewriteRule ^id/([^/]*)$ /urlugly?id=$1 [L] and apparently for redirect I can add [R] RewriteRule ^id/([^/]*)$ /urlugly?id=$1 [R,L] ...
1
vote
0answers
9 views

How can I view the memory size of modules used by Apache?

Ever since I started using my own Apache module on my server, I noticed that each Apache process size now went up from 30-50 MB to 60-70 MB+ I'm not sure if it is my module that is causing it, or if ...
0
votes
0answers
19 views

302 Redirect For Bots Only, Website Works Fine Though [closed]

On a website I maintain, I can't seem to figure out what is wrong. I checked everything I could think of. I get the error only when running the website through online analyzers/checkers like W3C ...
3
votes
1answer
32 views

403 when query string parameter contains an encoded URL

I'm using shared hosting with minimal access to any configuration settings. I've created a more or less empty HTML file, emptypage.html, with the following contents: <!DOCTYPE html> ...
0
votes
0answers
11 views

MYSQL Thread Historical Data [migrated]

We had to force a restart on our database server today and we're now trying to find out what the server was doing at the time of the shutdown. In our error logs we have found 5 instances where the ...
2
votes
1answer
20 views

Wordpress redirects to ipaddress

I have a self hosted wordpress website hosted on Digital Ocean,setup as a subdomian; ubuntu server running apache. I am trying to setup a development server to test out plugin changes and wordpress ...
0
votes
1answer
39 views

403 when query string contains a dot (.) character [closed]

EDIT: did more research, asked new question I dug a bit deeper and realized that the contents of the page are indeed not relevant to this issue. As this question has gotten more and more confusing, ...
0
votes
0answers
28 views

How to allow access to subdirectory in website using htaccess?

I am wanting to create a seperate directory for my analytics program to function. My website is www.loosebruce.co.uk and I want my directory to be accessible as www.loosebruce.co.uk/analytics The ...
0
votes
0answers
14 views

htaccess sitemap.xml rewrite to /sitemaps/$_SERVER[“MYVAR”]/sitemap.xml

I am trying to update htaccess to write as following: htaccess sitemap.xml rewrite to /sitemaps/$_SERVER["MYVAR"]/sitemap.xml This rewrite should only occur if sitemap.xml is requested in root ...
3
votes
0answers
48 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 ...
0
votes
0answers
18 views

Varnish gives error 503, fixed by restart

I have a site running Apache, currently serving static files. A Varnish 3 cache has been setup on a separate virtual machine instance with default parameters and VCL. For some reason, Varnish has ...
2
votes
2answers
74 views

404 not found errors when using Modx CMS in a subfolder

I have installed Modx CMS on my hosting provider, but instead of installing it on my root directory where it usually goes, I put it in a folder on the root directory called makeabio. directory loads ...
2
votes
2answers
47 views

htaccess force HTTPS except one page

This is my current .htaccess file: RewriteEngine On ErrorDocument 404 /404.html # 1 RewriteRule ^extra/([0-9]+)/(.*).html?$ pages.php?do=view&id=$1 RewriteRule ^special-bonus/([0-9]+)/(.*).html?$ ...
2
votes
2answers
99 views

How can I use .htaccess to respond with 403 forbidden status for URLs that contain a query string?

Some bots have been crawling my site for every link that ends with: ?utm_source=dlvr.it&utm_medium=twitter I haven't checked out its IP. Then other bots (10+) follow the link rules ...
1
vote
1answer
25 views

How can I disable the certificate/SSL handshake on the 'www' version of my site served by Apache?

We use SSL on the https://www version of our website. Now I would like to disable the SSL connection on the https://non-www version of our website, so the result is: https://non-www => SSL ...
2
votes
1answer
73 views

HTTPS redirect doesn't appear to follow .htaccess RewriteRule, how can I fix this?

I am redirecting example.com to sample.com/?example, so that I can have a modal popup saying, example has changed its name to sample. It works fine for HTTP redirects from http://example.com, and ...
1
vote
1answer
35 views

Should Apache's httpd.conf Main Server configuration be used with virtual hosts?

Apache's httpd.conf file has three sections. Section 2 is for the 'Main' server configuration, and Section 3 is for Virtual Hosts. In section 2, one has the option to give their server a name. In ...
4
votes
1answer
125 views

How to set browser cache to expire after one day?

I'm using the code below in my .htaccess file to enable caching for my website: ## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ...
3
votes
1answer
53 views

Multiple Apache vhosts with Basic Auth & SSL

I'm just getting started using Apache and I pretty much have everything configured the way I want, I'm just having trouble with one aspect. A quick overview: I have a document root of "/var/www", ...
7
votes
2answers
1k views

Make Google index over 90,000 user profiles

I have a large amount of user profiles hosted in this schema https://example.com/stats.php?player=name (It's not the prettiest URL, but .htaccess dramatically slows down my site and I don't understand ...
4
votes
1answer
267 views

Apache 2.4 Loads Image Files Even Without Extension. Why?

I have an HTML page with the following: <img src=J3 width="100" height="150" alt="Student Name" style="float:left;"/> In the same directory there is an image file, J3.jpg. The page ...
2
votes
2answers
47 views

Apache wildcard domains - Restrict number of subdomain levels

I would like to setup a VirtualHost which allows for wildcard subdomains such as foo.sites.example.com and bar.sites.example.com. I do not, however, wish to allow multiple level subdomains such as ...
1
vote
1answer
49 views

Multiple level subdomains SSL certificates

I have a need for multiple subdomains to have a SSL certificate. For instance, the following where the subsite number and subsubsite number could go for ever. subsite1.sites.example.com ...
1
vote
1answer
42 views

Multiple VirtualHosts with wildcards

I have a three VirtualHosts. The second two utilize wildcards. www.example.com *.sites.example.com (i.e. foo.sites.example.com) *.*.sites.example.com (i.e. foo.bar.sites.example.com) For the ...
3
votes
2answers
73 views

Alternatives to multiple .htaccess files or a gigantic httpd.conf file

When starting off, I used .htaccess files to instruct Apache how to handle a request. Not only have I read that doing so was inefficient, I found having a multitude of .htaccess files located ...
3
votes
1answer
93 views

How can I force my site to serve just HTTPS and non-www?

I have a WordPress install where all the links are https://example.com. So, users that try to access the site via https://www.example.com will see the site, but none of the images and resources will ...
1
vote
2answers
30 views

Disable cPanel Apache access logging by cPanel account itself?

Solutions I found through Google to disable access logging of a particular cPanel account seems to be either editing httpd.conf or having access to WHM. Is it possible for the cPanel account itself ...
1
vote
1answer
68 views

Configure files to come from a central location unless that file has been customized for a specific site

I have an user A on a server, this users has a working set of scripts (html+js+css+everything else). I also have users B-[as much as I want]. I want those to use the exact same files, but if they have ...
1
vote
1answer
32 views

Cannot find index for non www

The domain points to an A-Record name server, and as of now the name servers are defaulted to registrar (GoDaddy). I went into /var/www directory and edited index.html to <meta http-equiv="refresh" ...
0
votes
2answers
116 views

Baiduspider is crawling my site even when forbidden by robots.txt, how do I prevent it? [duplicate]

My site has heavy traffic because some bot. I checked access_log, some bot Baiduspider go to my site 10-20 times per minute. I do not need Chinese traffic. I have searched and read ...
2
votes
1answer
87 views

Restrict mod_pagespeed to specific domains on a server

If a server hosts the following domains:- http://exampleA.com http://exampleB.com http://exampleC.com How is it possible to enable mod_pagespeed for only domains http://exampleA.com and ...
5
votes
2answers
346 views

Apache: disable PHP in a directory

I want to disable php in a specific directory on my server. I thought that setting Options -ExecCGI in httpd.conf would prevent php scripts from being executed, but obviously I am wrong. So, this is ...
1
vote
1answer
25 views

how to store html files in /htdocs directory?

I am beginner, and i want to store .html files in the /htdocs(root) directory in apache (xampp server). I have server name as example.com (localhost) and I want display login.html file after the ...
2
votes
1answer
56 views

How to add the ‘www’ prefix to my domain

I am trying to add www to my domain. I have the custom PHPcode on live server. I have workout GoDaddy forward options also but still my domain not forward. I have a site designed in Core PHPand was ...
0
votes
1answer
34 views

Apache Configuration - Directory

I am trying to figure out why i can not access my folder for web-mail yet i have got the correct location and copied a working directory above. Forbidden You don't have permission to access /mail ...
1
vote
1answer
51 views

Bypass all rules and redirect internally to another folder/file

In Apache config file, there are some rules defines like below: <IfModule mod_rewrite.c> RewriteRule ^(Category)/([^/]+)/(.+)$ index.php?module=$1&id=$2&action=$3 [B,L,QSA] ...
2
votes
1answer
75 views

Apache Unable to open logs: /Applications/MAMP/Library/${APACHE_LOG_DIR}/error.log

I am trying to run a project built in Ubuntu with PHP on fat-free framework. I am using MAMP on macOS Yosemite 10.10.1. I imported a database successfully through phpmyadmin & following these ...
1
vote
2answers
55 views

301ing a 301 URL to yet another 301, bad for SEO?

I am working on a website that has a huge amount of 301s in it due to new versions of the website being roled out and thus different URL structures being used. I have noticed that some of the old ...
1
vote
0answers
124 views

Can Apache .htaccess convert the percent-encoding in encoded URIs from Win-1252 to UTF-8?

I want to add a directive in my .htaccess, such that if the browser is pointed at a URI containing %E4 (ä) - or any other special character - the .htaccess automatically rewrites %E4 (ä) as %C3%A4 ...
2
votes
1answer
55 views

Sharing CodeIgniter installation between different servers

Current situation: I've got 2 different servers, each one hosting its own CI installation, and everything is working fine, except a lot of code is duplicated (custom libraries, some views, etc) My ...
0
votes
2answers
25 views

How to fake domain on OS X?

I have added an entry to my hosts file which allows me to have localhost URLs like the following: http://mydomain.dev/~macuser/mydomain/index.php But I would like to somehow map this host entry ...
2
votes
2answers
187 views

Add domain to VPS (DNS?)

I have a VPS and some domains. I want to add one of my domains to the VPS. My VPS provider has send me his Nameservers like ns1.example.com and ns2.example.com and I changed these DNS records in my ...
1
vote
2answers
268 views

What are spiders trying to achieve on my site by fetching lots of non-existant urls such as various versions of phpMyAdmin?

I've recently set up a build server that compiles Java source on Github webhooks. I created a public page for downloading latest .jars with a top level domain and I'm logging requests to it. What are ...
0
votes
0answers
175 views

GET 404 errors, when trying to access the web interface of Odoo/OpenERP after installation [closed]

I try to host Odoo on a shard-hosting server and after installation I only get this part of the website: It's looking like this in the awesome Network Monitor of Firefox: Here's a small snippet ...
1
vote
2answers
395 views

Remove trailing slash and index.html in .htaccess

I seem to be stuck here trying to figure out how to redirect the following scenarios: /foo/index.html -> /foo (remove trailing slash, index.html as 301) /foo/ -> /foo (remove ...
1
vote
1answer
69 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 301ed to ...
1
vote
1answer
48 views

Removing trailing slash ONLY for a specific directory

I would like to 301 redirect my URL that has a trailing slash to a URL without a trailing slash. That part is simple (RewriteRule ^(.*)\/(\?.*)?$ $1$2 [R=301,L]) However I only want to do it if that ...
0
votes
1answer
31 views

How to configure JSF and Apache to use a domain name on port 80?

I am currently trying to setup my server on port 80 and I cannot seem to get it to work correctly. I am currently using Intellij as an IDE and have no idea why this is not working. I first tried just ...
2
votes
2answers
175 views

Browser will not cancel the request if routed through PHP

I have a site which has a feature that causes Apache to route all requests for files in a particular directory through a PHP script via .htaccess. A problem has come up that I'm not sure how to ...