Apache (HTTP Server) /əˈpætʃiː/ is a modular cross-platform web server software with a large variety of features(called modules) including SSL, compression, log, proxy and server-side programming language interfaces like Perl, Python, Tcl, and PHP.

learn more… | top users | synonyms

0
votes
0answers
18 views

Apache Redirect to another folder, both within and outside document root

I've recently set up a home web/media server and having a few difficulties with a few of the settings. It's working fine for serving webpages etc but I've now reorganised the structure of the main ...
0
votes
0answers
8 views

Vary header unset and unsettable

I'm setting a website hosted on Apache/2.2.17. I don't have access to apache's installation directory nor httpd.conf file (just www folder with eventually some .htaccess files). I've got gzip ...
-1
votes
0answers
17 views

HOW TO PUBLISH / DEPLOY A RUBY ON RAILS WEBSITE? [on hold]

DETAILED INFO NEEDED ON HOW TO PUBLISH / DEPLOY MY RUBY ON RAILS WEBSITE? Hi all. This is my first post here. I'm pretty novice on RUBY ON RAILS whatsoever so I'll try to be as specific as I can. My ...
-1
votes
0answers
9 views

Wamp Server Not Parsing htm Files As PHP

I know this question has been already asked here. I am trying to use a script in my localhost. The script contains .htm files and an .htaccess file with the following code to parse those .htm files as ...
1
vote
0answers
12 views

ipv6 and ipv4 server preference [migrated]

A webserver I manage is running Ubuntu 14.04 and is configured for dual stack - ipv6 & ipv4. It is my understanding that ipv6 connections have first priority after which it should fall back to ...
2
votes
2answers
61 views

What can cause the size of HTTP response to vary for the same response body?

I am trying to understand why the web server behaves differently for the following bad requests: Method Proto Status Req Body Res Referrer ...
2
votes
1answer
56 views

Apache HTTPS ProxyPass certificate location

I'm trying to set up an Apache server that uses ProxyPass to pass HTTPS requests on to another server. Let's call the proxy server ALPHA and the target server BETA. ALPHA does not run HTTPS, but ...
1
vote
4answers
74 views

Should error pages be strictly html?

I'm using PHP on Apache server I'm wondering.. If the error pages should best be served as pure and simple html, without database connection etc.? This would remove any chance of ...
0
votes
0answers
39 views

How to handle non-existent subdirectories?

I have a dynamic website with friendly URLs. Example: Instead of /user.php?id=123, I have /user/123 Instead of /index.php?category=fishes, I have /fishes But, how do I handle non-existent ...
2
votes
1answer
681 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 ...
2
votes
2answers
35 views

Prevent request via IP address of server

I'm pretty sure there's a way to prevent access to a website through the server IP address and to force the user to enter the domain name instead. so that http://156.56.75.87 should trigger a 403 and ...
1
vote
1answer
400 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
45 views

Geolocalization and Redirection

I have a multilanguage website. My project was to add the Geolocalization so base on the country that open the site to redirect in the specific url with the right language. The structure of the ...
3
votes
3answers
126 views

Allowing access to an Apache virtual host from the local network only

I have a web page on a Linux server I administer, running Apache 2.2. This server is visible to the outside world for some other services. I would like to configure Apache so that a given virtual ...
0
votes
1answer
25 views

Removing the subdomain as a subdirectory in Apache

I simply trying to make my webpage come up as owncloud.example.com instead of owncloud.example.com/owncloud. I am running Ubuntu 14.04 and Apache 2.4, and using OpenSSL. I have tried changing ...
1
vote
0answers
174 views

In nano 000-default.conf (as root user) in Apache2 on EC2 Ubuntu Instance on AWS page is blank?

When I SSH into my ubuntu server on EC2 in Amazon Web Services, and I change to the root user using sudo su, I navigte to /etc/apache2/sites-available to make changes to the 000-default.conf file ...
2
votes
3answers
2k views

Enable use of .htaccess

I'm trying to enable use of htaccess file in Ubuntu 14.04 (Apache 2.4.7). I know that this question has many possible dublicates, but none of them helped me yet. .htaccess: ErrorDocument 404 ...
3
votes
1answer
60 views

Updated Apache from 2.2 to 2.4 and now my sub domains are broken

Upon trying to visit any of my subdomains here is the error recieve in my error.log file: [Tue Jul 15 11:17:42.924790 2014] [core:alert] [pid 17309] [client 108.162.241.152:26427] /var/www/.htaccess: ...
1
vote
0answers
127 views

Apache, Rewrite Rule and Directories

I'm using the current virtual host: <VirtualHost *:80> ServerAdmin webmaster@mysite ServerName example.co.uk ServerAlias www.example.co.uk DocumentRoot ...
3
votes
1answer
22 views

Joomla internal only page

I have a LAMP setup and Joomla. I want to have some URLs/pages in my Joomla website only internally to my subnet. Is there a file/URL equivalent for Directory like this? <Directory ...
1
vote
2answers
110 views

Serve most of a domain with Apache, but use mod_proxy to serve some URLs from Lighttpd

So we wish to host some pages on a new server with apache2, and embed some of our old content & functionality from another server with lighttpd in an iframe. I'm looking at this configuration from ...
2
votes
1answer
33 views

When does Apache log to access.log - before or after serving the request?

Reading this post "Understanding Apache Access Log" it refers to http://httpd.apache.org/docs/1.3/logs.html which says %t is the time the server finished processing the request. By this I ...
1
vote
1answer
53 views

Use different .htaccess file based on set header from browser

I want to have the ability to test .htaccess rules before saving them to the main .htaccess file. Is it possible to set a specific request header and have Apache use a set of rules from a different ...
0
votes
1answer
14 views

RewriteRule not working at server level?

I wanted to forbid some robots from doing certain things to my websites and decided to add a RewriteRule for that purpose. The rule works when put in one of my <VirtualHost *:80> tag and looks ...
2
votes
0answers
29 views

Apache mod_pagespeed ignores redirected pages

Using mod_pagespeed (https://developers.google.com/speed/pagespeed/module) with an Apache Server, I noticed that some pages were not being processed. The pages in question all had one similar ...
1
vote
2answers
39 views

Geolocalization of my website

I have a big problem with GeoIP. My website has the following structure www.domain.com it.domain.com de.domain.com I use the MaxMind GeoIP module in Apache to redirect users to the appropriate ...
0
votes
2answers
58 views

Mod_Rewrite Error code: ERR_TOO_MANY_REDIRECTS

I know alot people have post about this error , however i still unable to solve it.So that is the reason why i start a new post with it. As stated in the title , i encounter a redirect loop when ...
1
vote
1answer
40 views

Rewrite and virtual hosts for moving subdomains to folder-like requests

I am administering a website that previously had mini-sites set up for various physical locations using sub-domains (city1.site.com, town2.site.com, etc.) and I now need to disable these mini-sites. ...
1
vote
0answers
61 views

Maintenance Page via Apache when Tomcat is down

I have an Apache2, sitting in front of Tomcat7 via ajp, all on Ubuntu. What I want to do is serve a simple static page with Apache when I perform maintenance. I found this nice tutorial, but I am not ...
1
vote
0answers
33 views

Apache Reverse Proxy (Same ProxyPass path but different Destination)

I have a problem here. I am doing reverse proxy for few website in my test server. So , what i have encounter here is that when i request the website from the client , both website request from the ...
2
votes
1answer
181 views

Can't access website from same network

I've setup IIS locally to host a website. I've created a free NOIP account so I can access it with a domain name. It's temporary, so I plan to assign a real domain to it later. I setup port ...
1
vote
2answers
97 views

How to set the Content-Type for SVG files parsed by PHP

I currently use the following Apache httpd conf: <FilesMatch "\.svg$"> SetHandler application/x-httpd-php </FilesMatch> AddType image/svg+xml .svg What I'm trying to achieve: ...
0
votes
1answer
121 views

CheckCaseOnly doesn't work, while CheckSpelling does

I'm trying to globally set CheckCaseOnly on to make my webservers folders case insensitive. It doesn't work though? I don't need it to correct spelling - thus I'm not using CheckSpelling. Apache2.4 ...
1
vote
1answer
21 views

Domain not accessing correct files in apache2 virtual hosts

I have 3 domains hosted on my Ubuntu server running apache2 as DNS I am using cloudflare.com abc.com and xyz.com are accessing correct files that are inside abc.com/public_html and xyz.com/public_html ...
0
votes
2answers
35 views

Location of httpd.conf file

I have setup a home server on my PC and I can edit my httpd.conf file on it. When I move to my web server I can't see the location of my httpd.conf file. Is it in the www directory of the website? ...
1
vote
2answers
56 views

Change Apache +Indexes language

I have a webpage with Index activated. I have this: Is there any way for change language of this, using .htaccess? I've already tried this Directives: AddLanguage pt .pt DefaultLanguage pt-PT ...
2
votes
1answer
112 views

SSL not working on home page

Recently set up a server for a client and installed a Comodo Positive SSL certificate. In firefox everywhere on the website I can see the padlock icon which shows the Comodo verification, except the ...
0
votes
0answers
25 views

Apache mod rewrite rules for swapping directories

I am trying to correct for an issue where some dynamic urls were generated where the downstream directory paths were swapped with what is normal and then the links were published. For example: ...
2
votes
1answer
34 views

Handle an HTTP error dynamically in Apache

For my personal website, I wanted to make a webpage for every error that could come up on an Apache web server - so that it could fit in better with the style of the website instead of the generic ...
2
votes
1answer
67 views

How to allow www.domain.com and domain.com on EC2 Ubuntu Instance on AWS

I have an EC2 Ubuntu Instance that I have apache2 installed on (along with php, mysql, mycrypt for a Laravel project). I have set up the correct nameservers, and www.domain.com is coming up online. ...
1
vote
1answer
41 views

Why web hosting providers use Apache for their plans?

As the title says, I see most web hosting companies provide plans that running Apache instead of Nginx. So, what is the reason that makes them stick with Apache? Although, Nginx is much more lighter ...
0
votes
0answers
124 views

Configuring Apache 2.2 for Python web app in subdirectory

I have been assigned a web server to administer, and I have to deploy a web application I wrote on it. This application is mostly a single page in JS + HTML, but it has a little form to accept ...
0
votes
1answer
218 views

URL rewrite to another folder and file for specific requests

I have following directory structure on my local LAMP: www basic app router.php public index.html .htaccess and I can access my index page with localhost/basic/public/ and I am not using ...
0
votes
0answers
21 views

ProxyPassReverse doesn't seem to be working

I have the following virtual host on my personal web server which runs on my NAS.I have dynDNS setup to redirect both mydomain.com and *.mydomain.com to my NAS. <VirtualHost *:80> ...
3
votes
1answer
946 views

Enabling SSL on Apache2 causes address already in use error

My server works just fine on a normal Apache2 install. Now, I'm trying to install subversion on this server using a guide I found on the net called: Installation of Subversion on Ubuntu, with Apache, ...
1
vote
0answers
26 views

pointing Apache to the fresh log after newsyslog rotation?

OK, I've set up my Mac OS 10.8 2.2.24 Apache server, and it's serving well. Now I'm just trying to understand how to do log rotation. I'm using newsyslog, and it seems to work very well ... as in, I ...
3
votes
1answer
158 views

What steps are required to enable SSL on Apache2 with Ubuntu?

I am developing a strategy game for web where there there will be a lot of client-server traffic for sending attacks, moves, etc. Right now I send messages from the client to the server via HTTP, and ...
0
votes
1answer
21 views

unusual autoindex-like commands

In looking at my logs, I get many GET requests aimed at a directory with what appear to be auto-index parameters. Stuff like ?C=M or ?O=A. I understand those. But I also get many requests with ?N=D, ...
1
vote
2answers
100 views

IP, and page-specific redirect?

I'm trying to send a particular IP, that is trying to get one page on my site, to another page, and do this through my .htaccess file. I've seen many general descriptions of how to do it (in many ...
1
vote
0answers
89 views

Apache HeaderName does not work in .htaccess

So I have a .htaccess file in a subdirectory that contains a list of folders. In the main directory I have a .htaccess file that contains: Options +Indexes IndexOptions FancyIndexing AddType ...