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
234 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
6k 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
245 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
203 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
444 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
657 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
175 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 ...
0
votes
0answers
105 views

mod_jk status page “Client Errors”

I have been examining the information displayed in the mod_jk status page for a server instance and there is a column for each worker titled "CE" which the key states is a count of "Client Errors". I ...
0
votes
0answers
15 views

Apache System privilege issues on windows server

I am trying to open an excel application and open a excel file locally on the windows server, using perl module win32::OLE on my web page, running on Apache. I understand when apache serves the ...
1
vote
1answer
420 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
552 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
122 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
431 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
167 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
23 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
102 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
202 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
590 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
137 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
94 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
92 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
89 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
324 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
242 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
59 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
95 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
625 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
643 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
83 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
1k 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
120 views

Apache, Rewrite Rule and Directories

my sites-available/ file looks something like the following: <VirtualHost *:80> ServerAdmin webmaster@mysite ServerName mysite.co.uk ServerAlias www.mysite.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
242 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
2k 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
811 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, ...
0
votes
1answer
218 views

Changing domain name - what are the practical steps involved [duplicate]

Possible Duplicate: How do I rename a domain and preserve PageRank? I launched a website a couple of years ago, bright eyed and bushy tailed, with dreams of conquering the world. ...
1
vote
1answer
359 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 ...
0
votes
1answer
929 views

Apache2's recursive directory permission requirement

The experience I've had thus far is from Ubuntu 10.04 and 12.04 64 bit OS so if there are other OS differences I'd like to know if this is an OS specific problem or not. The issue I've experienced is ...
0
votes
1answer
117 views

How to ensure apache2 reads htaccess for custom expiry?

I have a site with Apache 2.2.22 . I have enabled the mod-expires and mod-headers modules seemingly correctly: $ apachectl -t -D DUMP_MODULES … expires_module (shared) headers_module (shared) … ...
0
votes
4answers
194 views

Need to redirect to another server with no access to DNS A record

I've a website which is on two servers - the one it's on now malfunctioned. I have the site hosted on a second server, but have no access to the DNS Records to point the A Record to the new server IP. ...
3
votes
1answer
187 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 ...
1
vote
1answer
164 views

Is it possible to use two different ErrorDocuments for different paths of a website?

I currently run PmWiki at mydomain.com/pmwiki. I have a 404 page and .htaccess set up in my site's document root for 404 pages regarding anything that doesn't have to do with my wiki. By default, ...
4
votes
1answer
98 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 ...
2
votes
0answers
345 views

Problem with missing JSON functions on PHP 5.2.6 / Plesk 8.4

I have a vserver running openSuse 10.3, Apache 2 and Plesk 8.4. I can update/upgrade neither, as it is apparently not recommended to upgrade openSuse 10.3 (and an update to the EOL 10.4 does not seem ...
1
vote
0answers
272 views

404 error on a file/directory that exists?

We are using the vBulletin system. I have set it up so that it redirects 404 error's to a php page, so it follows the theme of the forum. However, if I go to a directory that exists (the admin ...
0
votes
0answers
56 views

Logging what was in the content of a page

I'm one of the people working on a Java based website that has the apache httpd in front of it. The content on the pages is migrating towards personalizing the content and as such just about every ...
0
votes
1answer
513 views

Do I need a subdomain or CNAME?

I have a domain with Godaddy (mysite.com) which is pointing to my AWS EC2 box. Now I need a launchpad link on my website so that if the user clicks on it it would point to launch.mysite.com This ...
4
votes
2answers
321 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 ...