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
103 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
105 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
34 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
799 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
374 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. ...
0
votes
0answers
16 views

DDOS from several Chinese sites [on hold]

I've been getting floods of traffic from several Chinese "SEO" sites. They appear to open up tons of AJAX connections to various sites. I'm not sure what is going on here.. but all of the ...
1
vote
1answer
442 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 ...
2
votes
1answer
584 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
0answers
19 views

How to configure nginx to dynamically read folders, user accounts/domains? [migrated]

I have cPanel and Apache 2.4 on my CentOS 6.6 VPS. I installed Nginx as a reverse proxy. Everything works fine. I have 2 domains on the VPS & I'm able to configure them both on nginx. The ...
1
vote
2answers
154 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
0answers
20 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
11 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
9 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
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
26 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 ...
1
vote
1answer
583 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?
2
votes
0answers
33 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
87 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
47 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
69 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
36 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
1answer
58 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 ...
1
vote
2answers
50 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
94 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 ...
1
vote
1answer
25 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 ...
0
votes
2answers
23 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
63 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
119 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
112 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
206 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 ...
1
vote
1answer
91 views

Filtering content from response body HTML (mod_security or other WAFs)

We have Apache on Linux with mod_security as the Web App Firewall (WAF) layer. To prevent content injections, we have some rules that basically disable a page containing some text patterns from ...
0
votes
0answers
80 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
0answers
42 views

Can Internet Explore user 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 ...
1
vote
1answer
31 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 ...
2
votes
1answer
57 views

Apache virtual hosts configuration for MAMP results in new sites going to the same folder

I have MAMP installed in my mac. Why is it that every time I create a new site, they all go to the same folder? Here is my /etc/hosts file: 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 ...
2
votes
2answers
193 views

Can't Make Changes via FTP on my Ubuntu Server

I'm very new to server management, I literally just set this up for the first time a couple weeks ago, no idea what I'm doing. In order to allow WordPress to run updates, apparently everything needs ...
1
vote
1answer
36 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 ...
1
vote
0answers
31 views

How can you use Apache .htaccess to specify the location of the PHP binary on shared hosting?

I'm using shared hosting, can create .htaccess and php.ini and have access to ssh. I have PHP 5.6 installed to ~/public_html/php56 and can use this path with ssh, cron and exec() but not on the web. ...
0
votes
1answer
17 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
1answer
1k views

Subfolder non-www redirect

Is there a way to redirect a sub folder to no-www? What I use is: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] but this only ...
2
votes
2answers
101 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 ...
2
votes
1answer
91 views

Unexplained long Time To First Byte

My wordpress blog is getting a grade F for TTFB on webpagetest.org: http://www.webpagetest.org/result/140905_20_PRX/ with a TTFB of over 800ms. I cannot explain it. Indeed, I use a CloudFlare CDN, ...
7
votes
2answers
3k views

Why does my site only work with a www in the URL?

I'm a bit confused as the following points: There is a simple text website, with no javascript, that works only with the prefix. http://www.mysite.corporation.com works but ...
0
votes
1answer
42 views

RewriteRule not working properly in my Ubuntu server 14.04 running in Windows Azure

In my server I kept signup.php and in .htaccess I kept this thing - RewriteRule ^/registration/?$ http://www.example.com/signup$1 [R] But this is not redirecting www.example.com/registration/ to ...
0
votes
0answers
11 views

JSF DNS Server configuration with Namecheap [duplicate]

I currently have a website that I built and am hosting it on port 8080. I finally finished everything that I wanted and want to deploy it. I created a namecheap account and paid for a year service. I ...
0
votes
1answer
84 views

Fatal PHP Data Objects (PDO) Error - But PDO is enabled?

I recently switched website hosts, however with the new hosts, we are encountering some PDO problems. Everything indicates that PDO is enabled on my server, however, when I test it through php, with a ...
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 ...
1
vote
0answers
45 views

Apache 404 Issue after upgrading from Mavericks to Yosemites

Good afternoon fellow StachExachangers, Background story: I have recently upgraded my macbook pro from Mavericks to Yosemites, everything went well except my local development environment got ...
1
vote
1answer
58 views

Rewrite root folders to a php file and exclude some folders

I want to rewrite all the root folders to mysite.com/index.php?folder=^folder using Apache htaccess. However, I don't want the images folder to be rewritten. Like Facebook.