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

SSL issue and redirects from https to http

I have a site www.example.com for which i purchased SSL cert and installed. And it was working fine, I also have a subdomain with app.example.com which was not on SSL. Both www.example.com and ...
0
votes
1answer
117 views

Getting really weird entries in Apache log from Baidu.com?

I was looking through my server logs today, and I noticed this: (it's all one row) 118.244.179.250 - - [16/Oct/2013:20:59:25 +0000] "GET ...
0
votes
1answer
262 views

Using Apache's rewrite module to set up local host names for development

I have several websites on my development machine under Apache's htdocs folder. Apache Directory root is htdocs, but I want to be able to access each different site there by individual domain names. ...
1
vote
1answer
106 views

How to set up a single IP blocklist for multiple sites hosted on the same account

When running multiple sites on the same hosting account, one might find that an attacker has attempted to breach one site. A webmaster may want to block the IP address from all sites hosted in the ...
3
votes
1answer
193 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.
1
vote
1answer
41 views

What is the purpose of <Directory /> with a local <VirtualHost>

<VirtualHost *:80> DocumentRoot /var/www <Directory /> </Directory> </VirtualHost> Does the <Directory> tag refer to /var/www on the server, or /? What ...
0
votes
1answer
493 views

index.pl getting downloaded instead of executing on Ubuntu 12.04 and Apache 2.2.22

I have installed Apache 2.2.22 on Ubuntu 12.04. But in browser when I type localhost, it gives index.pl file to download instead of executing it. What I tried: 1. chmod 755 index.pl 2. Adding line ...
6
votes
1answer
553 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 ...
0
votes
1answer
160 views

Linux Mint 15 + Rails with Apache/Passenger

I am only beginner and try to understand how to configure apach web-server for my RubyOnRails app. I have linux, installed apache2, passenger and apache2-module for passenger. While installing i got ...
2
votes
2answers
1k views

Mod-rewrite rule broken after host upgrade to Apache 2.4

I use the following code on my site to remove php extension from links: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...
2
votes
1answer
515 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
409 views

How do I block a user-agent from Apache

How do I realize a UA string block by regular expression in the config files of my Apache webserver? For example: if I would like to block out all bots from Apache on my debian server, that have the ...
3
votes
1answer
149 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 ...
2
votes
1answer
699 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, ...
0
votes
1answer
264 views

Apache is redirecting all https requests to one vhost

Apache novice here, We run a server with a few dozen vhosted sites, under apache 2.2.22 on ubuntu 12.0.4. None of them had a SSL before. We had a client request one the other day, and shortly after ...
1
vote
2answers
9k views

Configure clean URLs using Laravel using a rewrite rule to index.php

Recently I've started learning Laravel , I have none experience with framework before. I'm encountering the following problem .I'm trying to configure the .htaccess file so I can have clean URLs but ...
1
vote
1answer
384 views

apache2 subdirectory access

I am setting up an apache server on my linux (debian) machine. I am making a website, with sub directories that contains my css and image file. Here is my config. <Directory /var/www/*> ...
0
votes
2answers
269 views

Pretending a file is in subdirectory with .htaccess

I have a web application, and it has a RESTful PHP backend that uses Zend framework (which does its own URL rewriting magic). The problem is, my backend's entry-page is api.php and the endpoints look ...
1
vote
2answers
565 views

Automatic redirection from http to https with .htaccess authentication in virtual hosting

Hi I have configured Virtual host on apache with .htaccess authentication with SSL. It's working fine when I typed url https://www.example.com:9004/test.php but when I typed ...
2
votes
1answer
999 views

SetEnv directive not working for localhost VirtualHost but works for other VirtualHost

I have two virtual hosts declared: localhost and test. Both use the SetEnv directive and point to the same DocumentRoot: NameVirtualHost *:80 <VirtualHost _default_:80> DocumentRoot ...
1
vote
0answers
188 views

How can I set a secure flag on cookies generated from a Python application?

I have an application written in Python running behind Apache and SSL. I am not seeing a secure flag on my cookie: apache Server version: Apache/2.2.15 (Unix) I have added a configuration line to my ...
1
vote
1answer
594 views

Best practices for serving multiple sites with Apache2 [closed]

I have a server with a number of virtual hosts. Over the last couple of years I have continually been improving on most parts of serving these sites, everything from how and where to do logging, how ...
2
votes
1answer
662 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 ...
0
votes
1answer
130 views

Can I redirect the HTTP request towards an old folder to the homepage using .htaccess file?

I have to following situation: I had an old blog that was made using Joomla (this blog was indexed well enough by search engines). For some problems I delete it and I have create it again using ...
0
votes
0answers
489 views

PHP not working while selecting multiple columns from a table with MySQL

I am using Apache 2.2. When I am trying to run it my browser is failing to run it, it's showing: This webpage is not available The connection to localhost was interrupted. Error 101 ...
0
votes
2answers
240 views

Issue with Apache redirection [duplicate]

I want to redirect mysite.com or http://mysite.com or www.mysite.com or any other format given my user to http://www.mysite.com, I'm able to achieve this by rewriting following lines in my .htaccess ...
0
votes
1answer
24 views

Web server with or without Panel [closed]

I start a Web server for my company for hosting about 15 website and I didn't install a Control Panel, I do everything by command and i'm pretty comfortable with it but do you think i'm losing time by ...
1
vote
1answer
111 views

Can't Get a Virtual Host to Work

I can't get a specific virtual host to work. This is the first part of my httpd-vhosts.conf file: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "/Volumes/Data ...
3
votes
2answers
231 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 ...
0
votes
1answer
777 views

Apache server not able to read cookies from Browser

I have developed a login authentication page using cookies (with spring security) where for the first time, the user will need to get itself authenticated. Once the user gets successfully ...
1
vote
1answer
158 views

Apache - Reverse proxy

I am using Apache 2 and using the below virtual host definition in httpd.conf file <VirtualHost *> ServerName localhost ProxyPass / http://localhost:8080/stackoverflow/ ...
3
votes
2answers
99 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 ...
2
votes
0answers
99 views

How many connection can my website have? [closed]

As the traffic increased my website hangs quite regularly. The page visit is now averaging 50k per day. The static page loads fine, but when the page has mysql request it takes too much time to ...
1
vote
0answers
94 views

Multiple PHP 5.x version for different directory [closed]

Is this thing even possible because I searched every where but all I could find was this one post ? Using .htaccess or using AddHandler/Action MIME module Directive ? I have compiled all Apache, PHP ...
4
votes
1answer
384 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 ...
2
votes
1answer
282 views

Can I dynamically set the SSLInsecureRenegotiation Directive?

We're running Apache 2.2.22 with OpenSSL 0.98, one of our Citrix NetScaler Hosts cannot send a client certificate after handshaking SSL as we have to set SSLInsecureRenegotiation off as a security ...
1
vote
1answer
66 views

How can I bypass modules in apache?

I have an apache server running on an embedded device that serves webpages to clients using a bunch of custom modules. I'm now trying to load some webpages from the device using ...
1
vote
1answer
99 views

CGI program can't access external sites through a proxy

We have a local "server" machine (Web, Samba, LTSP, DHCP.. etc) 192.168.0.11 running Mandriva / Apache2 which connects to internet using another machine as a proxy (Vista 192.168.0.2:6588). Browsers, ...
4
votes
2answers
96 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 ...
1
vote
2answers
667 views

GWT “Big traffic change for top URL”

I recently received an email from GWT saying that one of my URL's traffic has suddenly dropped. As it turned out the traffic to the whole site has drastically dropped, from some 300+ unique visitors ...
2
votes
1answer
874 views

How to set htaccess working on opensuse for codeigniter project

I'm trying to have htaccess work on codeigniter project but the module is not working and I don't know how to enable rewrite module. To have read the htaccess. The OS is Opensuse 12.2. I have this ...
1
vote
1answer
1k views

Apache2 redirect all sub-directories to index.html of main directory?

I want to put an .htaccess file in a directory of my website. For this purpose in: www.mysite.com/dir/ Then I want anything after /dir/ to direct to /dir/index.html but still display the original ...
2
votes
1answer
91 views

How to configure apache2 to just save certain POST requests without even passing them to application?

I'm running Apache in front of glassfish server using BalancerMember. For performance reasons I would like that POST requests on certain endpoint are just saved to a file without passing them to ...
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 ...
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 ...
1
vote
1answer
2k views

Is it possible to stream music/video from an Apache server?

I'm just starting to get into setting up a server. I've set up a basic Apache server to access some songs and movies. When I click one of the songs though, nothing happens. When I click one of the ...
2
votes
1answer
255 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
1answer
3k views

A lot of 408 errors in apache logs - how to prevent them?

I see a lot of 408 errors in my apache2 logs. I increased RequestReadTimeout and KeepAliveTimout but errors are still there. The errors look like this: xx.xx.xx.xx - - [05/Dec/2012:19:33:56 +0100] ...
3
votes
1answer
938 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, ...