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
1answer
14 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
52 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 ...
0
votes
1answer
23 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 ...
3
votes
1answer
40 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: ...
2
votes
1answer
26 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
51 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 ...
0
votes
2answers
56 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
0answers
53 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
30 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 ...
1
vote
2answers
91 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: ...
2
votes
1answer
158 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 ...
0
votes
1answer
112 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 ...
0
votes
2answers
34 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? ...
2
votes
3answers
1k 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 ...
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 ...
1
vote
1answer
20 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 ...
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 ...
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
33 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 ...
1
vote
0answers
160 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
1answer
63 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 ...
3
votes
3answers
124 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 ...
1
vote
2answers
38 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
0answers
122 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 ...
1
vote
1answer
39 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. ...
0
votes
1answer
197 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> ...
1
vote
1answer
44 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 ...
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 ...
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, ...
3
votes
1answer
147 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 ...
1
vote
2answers
99 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
86 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 ...
2
votes
1answer
32 views

What is the precise term for serving internal URLs to external ones?

Consider URLs to a public API: https://api.example.com/items https://api.example.com/add https://api.example.com/remove ... Internally, the calls are being served from local URLs, for example: ...
1
vote
1answer
159 views

Apache: redirect URL of internal WSGI server

The following Apache conf file serves a WSGI application via port 9002: <VirtualHost *:9002> SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.crt SSLCertificateKeyFile ...
1
vote
1answer
35 views

Apache: Server the same document root from multiple ports

Consider the following apache site file: <VirtualHost *:9000> SSLEngine on ... DocumentRoot /var/www <Directory ...> ... </Directory> </VirtualHost> ...
1
vote
2answers
91 views

Question about my public_HTML folder permissions

I have a shared hosting account that uses cPanel and I think su_php. By default, the permissions for my public_HTML directory are set to 750, which allows my site and all folders/files inside ...
1
vote
0answers
42 views

Apache2 only first virtual host is working

i have a probelm with this configurations, only the first virtual host is working and other under the same domain point to the first www.firebuggger.com). do you guys have a clue? NameVirtualHost ...
2
votes
1answer
67 views

Rebranding: how do I redirect my website to a new domain, and blog to a subdomain?

I have a website that I am rebranding and using a new domain name for. Right now it is primarily a blog hosted at the root. I am going to be redirecting from www.old.com to www.new.com, and I also ...
0
votes
0answers
176 views

SMTP Error: Could not open a socket to the SMTP server

I'm not sure how familiar some of you are on Invision Power Board(IPB). However this question someone includes their forum system. We currently host multiple servers with multiple web servers among ...
0
votes
0answers
16 views

Insert file from the current directory from within a central ssi include?

Our web pages use header and footer SSI includes and I'd like to insert some content specific to particular directories from within these. For example, say the header is located at ...
2
votes
1answer
270 views

Upgrading Apache 2.2 to Apache 2.4 [closed]

I'm planning to upgrade Apache 2.2 running on my centOS 6.5 server to Apache 2.4, Does the new Apache version worth the update?
3
votes
1answer
194 views

Redirect www to non-www using Apache htaccess does not work

I have this in my .htaccess (modified from the default Drupal .htaccess): RewriteCond %{HTTP_HOST} ^www\.website.com\.com$ [NC] RewriteRule ^(.*)$ http://website.com/$1 [L,R=301] In theory this ...
1
vote
2answers
153 views

Rewrite using .htaccess results in too many redirects

I'm currently creating a webpage which requires rewrites to look nice. The URL is: u.{my_site}/get.php?fid={ID}. The URL entered should be: u.{my_site}/{ID}. Because I'm bad (and new) at rewrite ...
1
vote
2answers
107 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 ...
0
votes
1answer
97 views

Perl script rendered in browser as code through symlink - fine when accessed directly

I have a Rails 4 app that has some views that post to Perl cgi scripts. The perl scripts are accessed via a symbolic link to a folder called "cgi-bin". When I navigate to a perl script through the ...