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
0answers
7 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 ...
0
votes
0answers
12 views

Can an adroid apache mysql php with localhost on android work? [on hold]

I would like to install a localhost - apache - mysql - php system on android tablet for convenient coding while traveling... Is this possible?
1
vote
1answer
37 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
1k 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 ...
1
vote
1answer
36 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 ...
3
votes
2answers
56 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
79 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 ...
2
votes
1answer
250 views

Require domain alias to show in browser address bar

Similar to question posted here (but not related to sub directories): .htaccess redirect of domain name alias to main domain but must show up as the alias domain I am trying to direct traffic from an ...
1
vote
1answer
265 views

Remove fb_action_ids of the URL with .htaccess

For some reason my host not let me have more than one htaccess so I have to make all the changes from the htaccess located in the root. My directory tree is as follows: ..../ ....index.html ....css ...
1
vote
1answer
452 views

Using mod_speling with multi-level htaccess and rewriterules

We recently switched formats for managing our 301s. For the most part, everything went well, but it seems to have stopped mod_speling from working properly. Here's what we changed: old ...
1
vote
1answer
106 views

CSS and JS are loaded from the IP address rather than from the appropriate subdomain host name

I have one VM (LAMP) with a static IP. There are two Subdomains configured on this Machine. If i browse one of the subdomains, it executes the files specified in its DocumentRoot. The problem here is ...
2
votes
1answer
601 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 ...
1
vote
2answers
159 views

How can I rewrite a subdomain to go to a specific file in a specific folder?

I've done searching for my answer and have tested a few solutions, but nothing has worked so far. I'm trying to get a URL like this http://baseball.sports.com to rewrite to ...
1
vote
1answer
60 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
2answers
22 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
28 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" ...
10
votes
4answers
283 views

Cheap server stress testing [closed]

The IT department of the nonprofit organization I work for recently got a new virtual server running CentOS (with Apache and PHP 5), which is supposed to host our website. During the process of ...
1
vote
1answer
23 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] ...
0
votes
2answers
58 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
38 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
286 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
680 views

How to configure mod_bwlimited through htaccess

The mod_bwlimited module in htaccess apparently displays an error if bandwidth is exceeded. Anyone know what options are available for configuring it through htaccess?
1
vote
1answer
50 views

Can Internet Explorer use the AES crytographic algorithm for HTTPS?

I wanted to disable RC4 and "force" PFS on my website. Without modification, every browser used RC4. As I don't have access to the root directory I did it by modifying the .htaccess file. Note: The ...
2
votes
2answers
4k 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 ...
1
vote
1answer
21 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 ...
1
vote
3answers
846 views

How do I force a www subdomain on both HTTPS and HTTP?

For whatever reason I can’t seem to get this right. I’ve looked at many examples on here and on the Apache website. I’m trying to force www.example.com instead of example.com on both HTTP and HTTPS, ...
2
votes
1answer
73 views

How to redirect a subdomain to the main domain so I can use an SSL certificate?

I have an apache server hosting with one IP address hosting a www and a 'sub' domain using <virtualhost>. That worked fine until I needed an EV certificate which works on only 1 domain. It ...
2
votes
1answer
30 views

Apache Tomcat Password?

I'm using dsBudget to manage my budgeting software. It's an apache tomcat web app. Would anyone know how I can password protect it? Basically it is designed to work on a local machine, but I want to ...
1
vote
0answers
131 views

IE 11 doesn't preserve session between pages in my Java Web Application

I have a Java web application running in Apache/Tomcat. The web application runs fine in the latest Chrome & Firefox builds, and in older versions of Internet Explorer (IE) such as IE 8. The ...
5
votes
2answers
5k 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 ...
3
votes
2answers
111 views

Configuring an Apache server to run Python

I currently have a website set up on an Apache server running on Redhat Linux, and am trying to configure it to be able to run Python scripts. Essentially, I want to allow Python to be executable, so ...
2
votes
1answer
45 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 ...
4
votes
1answer
819 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 ...
1
vote
2answers
399 views

301 redirect all pages with a specific extension

I have a website that is not on ASP anymore, it's a Drupal 7 website now. I need to use an .htaccess file to redirect with code 301 all pages with .asp extension to the 404 page or a specific URL. ...
1
vote
0answers
29 views

mod_cache always stores cached files served over HTTPS with “443” in the file name which causes caching not to work well

The config file: <IfModule mod_cache.c> <IfModule mod_disk_cache.c> CacheRoot /var/cache/mod_cache CacheEnable disk / CacheDirLevels 5 CacheDirLength 2 ...
0
votes
1answer
21 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 ...
2
votes
3answers
2k views

Physical memory usage issues with WordPress plugins

Occasionally, my website that's hosted with GoDaddy is crashing due to physical memory overload. My host told me that PHP processes are overloading the server, and to try to find out which WordPress ...
1
vote
1answer
27 views

SSL certificate for server with 2 static ips

We have an apache server in our office premises which is used for some ssl related requests. The office premise has 2 internet connections with static ip address. The internet connections are switched ...
2
votes
0answers
45 views

Set permissions for files uploaded to Apache's web directory via FTP on the Rapsberry Pi

I just set up an Apache web server on my Raspberry Pi, along with MySQL and PHP5. To upload files I set up vsftpd. The ftp connection sent me to my pi user home directory, instead of /var/www. So ...
1
vote
2answers
93 views

Redirect public traffic to a different subfolder, while local traffic remains unchanged

I would like to have local (intranet) HTTP traffic go to the /var/www/html folder while any public traffic goes to the subfolder, /var/www/html/public I've tried this configuration, with some ...
2
votes
1answer
54 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 ...
0
votes
1answer
70 views

Port numbers appearing in the URLs on my development site under Apache and Python

I've built a static site. Locally, when I serve the content with python -m SimpleHTTPServer everything behaves normally, but when I copy the HTML onto the server and browse the site at the server's ...
2
votes
1answer
42 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 ...
1
vote
2answers
53 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
116 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 ...
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
108 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
227 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 ...
1
vote
2answers
224 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 ...
3
votes
1answer
209 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 ...