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

6
votes
1answer
615 views

How do I capture incoming HTTP requests for analysis?

I have a site that is hit pretty hard by a 'bot script that thinks it is possible to brute-force the Admin password by "trying" out different passwords with the username "Admin". Here is an excerpt ...
5
votes
1answer
2k views

Applying domain name to a subfolder/path

I have a Linode instance of Ubuntu 10.4 using the LAMP stack to host an instance of Magento and a couple other things. I currently have megento set up at: http://123.459.780.123/magento When I ...
4
votes
3answers
1k views

How do I block US users from my website without interfering with SEO?

My website uses Apache 2.2.14 (which forwards all requests to Tomcat underneath). I need to block all US users from accessing the website (and potentially users from other countries). But importantly ...
4
votes
2answers
97 views

What measures should I take after I find one of my scripts being vulnerable?

I maintain a few PHP-based websites for a small company on a LAMP server. The scripts include CMS such as Joomla or Wordpress, as well as SilverStripe and Drupal installations. A week ago, I found ...
4
votes
2answers
373 views

Let apache run perlscripts that don't have an extension

I'd like to use perlscripts without their extension. f.e. "index" instead of "index.pl". Changing the DefaultType-directive from text/plain to application/x-perl didn't do the trick. Instead of ...
4
votes
1answer
410 views

What VPS spec would I require to run WordPress [closed]

I am looking to move an existing WordPress website to a virtual private server (VPS). It will be a Debian (minimal install) running ISPConfig3, Squirrel Mail, and Apache2. The WordPress site ...
4
votes
1answer
99 views

Unable to view 2 local sites over network

I have 2 websites running on my local machine that I'd like to view from other machines on the same network. For /etc/apache2/sites-available/site1.com: <VirtualHost *:80> ServerName ...
4
votes
4answers
2k views

Huge difference between Facebook Ad Click figures and Apache log requests

We're running a facebook ad campaign for our business but there seems to be a huge discrepancy between the number of clicks registered and the number of requests made with "facebook.com" in the HTTP ...
3
votes
2answers
2k views

Should 304 Not Modified responses include the “Last Modified” header?

I've been using the most excellent http://redbot.org tool for testing have HTTP headers on my site correct (its custom code in PHP serving dynamic content - wanting to ensure it cached where possible ...
3
votes
2answers
102 views

Installing a PHP framework to a host without public_html or www folders (ftp is DocumentRoot)

I've developed a PHP framework that operates with the directory structure of / /classes/ /templates/ /.../ /www/ (public_html) But I've come across a host that only allows ftp to the ...
3
votes
2answers
300 views

Bizarre image loading problem from apache2

Users have complained a few times about seeing a bizarre set of pink or green stripes on our webpage. At first I thought there were a rash of video card outages, but then someone sent me a screenshot ...
3
votes
1answer
289 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: ...
3
votes
1answer
244 views

Which is more supported by web clients (browsers): SAN (Subject Alternative Name) or Wildcard SSL Certificates?

Which are more widely supported by browser clients, wildcard or SAN certificates? I need to decide between using a SAN cert or a wildcard cert. Client/browser compatibility is my biggest concern.
3
votes
1answer
723 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 ...
3
votes
1answer
294 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 ...
3
votes
1answer
207 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 ...
3
votes
1answer
158 views

Standard Wordpress mod_rewrite rules interacting with one of my own rules are causing all requests for a certain page to be sent to the homepage

I have WordPress 3.5.1 installed on Ubuntu 12.04 LTS. I'm running Apache 2.2.22. NOTE: I can't share the domain that I'm working on, and must santize any config files and log outputs. While the ...
3
votes
2answers
249 views

prevent hotlinking of off-site content?

I have a www.example.com site where I serve all static content (e.g. http.//www.example.com/image.jpg) off a CDN with URLs like http://static.example.com/image.jpg An Apache 2 .htaccess rule ...
3
votes
1answer
200 views

Mod rewrite - redirecting url with certain parameter to new url

I need some help redirecting a url with particular parameter value to a new url. For example how can i redirect these two urls with id 123 and 345 to a new url? Redirect ...
3
votes
2answers
13k views

Apr_sockaddr_info_get() Failed

Today while trying to start apache server I received an error: Apr_sockaddr_info_get() Failed I would like to get opinions / answers to resolve this issue. I would like to know what exactly is ...
3
votes
1answer
23 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 ...
3
votes
3answers
169 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 ...
3
votes
1answer
1k 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, ...
3
votes
2answers
686 views

How to force browsers to always reload xslt files?

Related: Apache: How can I force the browser to reload CSS files? I'm building an xml page (on an apache2) that is supposed to be translated to xhtml by the browser, so my server also serves a ...
2
votes
3answers
2k views

How to restrict site access to all countries except mine with .htaccess?

I used this tool to download list in ".htaccess allow" format to allow traffic from my country and restrict all others but it's still accessible when visiting from bunch of foreign proxies. I'm ...
2
votes
3answers
5k views

Apache logs: “::1 … ”OPTIONS * HTTP/1.0" 200 -

Just looking at logs of a not-so-busy site on one of our Apache servers and notice tons of these in the log: ::1 - - [15/Apr/2011:12:11:40 -0700] "OPTIONS * HTTP/1.0" 200 - ::1 - - ...
2
votes
2answers
36 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 ...
2
votes
3answers
2k views

mod_rewrite works within directory not on root

I am having a problem with my RewriteRule for the querystring portion. What I am able to debug is that the rule is being triggered at least because the page "tags.php" is being rendered but without ...
2
votes
2answers
262 views

How can I test for a URLs existeance before redirecting to it?

I am using Apache's mod_rewrite to redirect mobile users to my mobile site based on their http_user_agent. However not all pages have a mobile equivalent. Also mobile pages end in .html and "full" ...
2
votes
1answer
3k views

last-modified/etags - to include or not?

Google's PageSpeed plugin suggests that a website should include Last-Modified and ETag headers: Specify a cache validator "Resources that do not specify a cache validator cannot be refreshed ...
2
votes
1answer
144 views

Hosting my own website on apache2, what information do I need from my domain registrar (bluehost)

I have lamp-server installed and am ready (and excited) to host a domain I purchased from bluehost on the server in my room. I have a few other things set up like openssh. What information do I need ...
2
votes
2answers
113 views

Virtual hosting

I want to use domains like xxx.abc.domain.tld. The xxx is my folder to access. I tried it with the rewrite rules, but I can't get it working, because I don't know how to get the part xxx from the ...
2
votes
1answer
85 views

Cache control header specified in .htaccess is not working for static files

I'm trying to use Google PageSpeed Insights to speed up my website - www.edmhunters.com. First off, here is what my .htaccess file looks like # ...
2
votes
1answer
458 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 ...
2
votes
1answer
118 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 ...
2
votes
1answer
42 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
82 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 ...
2
votes
3answers
18k views

Configure apache to make local website available for external people

I would like to make my local website (running on a virtual CentOs machine) accessible for my mate who is also working on the website. I have created a new line in my router config to forward all ...
2
votes
1answer
268 views

Optimal way to implement very big redirect list in Apache2

I have about 6000 URLs that need to be redirected after changing the CMS. All those URLs are stored in a DB table together with an ID that allows me to tell what is being referenced. Using this table ...
2
votes
2answers
666 views

Redirecting a CSS file based on .htaccess rules

I'm trying to hack the css files on OSTicket by replacing them with my own custom ones when a specific URL is accessed. The URL that is accessed for this example is ...
2
votes
2answers
73 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
57 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 ...
2
votes
1answer
272 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?
2
votes
1answer
647 views

mod_rewrite doesn't work at all

I have my small website (made for study purposes) on localhost and I am trying to get .htaccess working (note that I am a complete beginner to .htaccess). So far, I have discovered that .htaccess is ...
2
votes
1answer
790 views

Redirecting one page to HTTPS, and all others back to HTTP isn't working as expected

I have WordPress 3.5.1 installed on Ubuntu 12.04 LTS. I'm running Apache 2.2.22. NOTE: I can't share the domain that I'm working on, and must santize any config files. While the website is public, ...
2
votes
1answer
260 views

htaccess code for maintenance page redirect

I set up a maintenance page that I could enable through an htaccess file. The html file is located in a folder called "maintenance". The html file has some images in it. However, visitors to the page ...
2
votes
2answers
566 views

Is there a modern (eg NoSQL) web analytics solution based on log files?

I have been using Awstats for many years to process my log files. But I am missing many possibilities (like cross-domain reports) and I hate being stuck with extra fields I created years ago. ...
2
votes
1answer
133 views

Webserver timing out

I was working with my website yesterday when I was at home using my web address. Yesterday I installed Wordpress and it seemed to work. When I got to work today, I tried opening my website, and now ...
2
votes
1answer
319 views

Forward the request to other backend system on Apache webserver?

I want to forward my domain request to my backend systems without creating subdomain. For example: xyz.com my domain, when anyone enter 1.xyz.com request forward to 10.0.x.x. I want to host my all ...
2
votes
1answer
76 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 ...