Version 2.2 of the Apache HTTP Server. When asking questions about virtualhosts, please include the output of the following command: "apache2ctl -S" (or "httpd -S" depending on your OS)

learn more… | top users | synonyms (3)

1
vote
1answer
2k views

How to pass a request from one apache server to another

I have two Apache Servers with mod_proxy enabled. I want to know how to "pass the request" from "Apache Server A" to "Apache Server B" using the same port (80). In "server A" with internal ip: ...
0
votes
0answers
4 views

Ubuntu apache error log not showing remote ips

If I view my apache error log located in /var/log/apache2/error.log it wont show the remote ip from the client who generated the error. Now it looks like: [Sun Jul 20 13:07:55 2014] [error] [client ...
5
votes
2answers
3k views

Linux not interpreting UTF8 encoded characters

So, having the following file Adán-y-Eva-50x50.jpg when I try to access it, apache translates it to Ad\xc3\xa1n-y-Eva-50x50.jpg and won't find it, even though it exists. This happens only for ...
1
vote
2answers
649 views

You don't have permission to access / on this server - changing default www to NTFS drive

i have been struggling for a couple of days about this problem. I am trying to change the default www directory for Apache/2.4.6 (Ubuntu) web-server under LinuxMint16 and making it point to a NTFS ...
-1
votes
0answers
17 views

How can I send information to another website with Apache, IIS, and NGiNX?

I am using both Apache2, IIS, and NGiNX as servers. I am looking for a way to send bandwidth uses with the URL itself in maybe a HTTP POST request. So is there a way to do this without redirecting ...
-2
votes
0answers
20 views

Shared hosting server setup [on hold]

Right now I'm creating shared hosting infrastructure (one server as host, multiple LXC guests with inbound traffic to them via nginx, NAT their outbound traffic back to the Internet). So, could ...
1
vote
1answer
19 views

fail2ban to block Wordpress brute force attacks on wp-login.php

Is there a way to set up fail to ban to block on IP that hits wp-login too many times? I have tried adding this jail.local: [apache-wp-login] enabled = true action = iptables[name=wplogin, ...
-1
votes
0answers
13 views

Sometimes apache will say “index.html” “ is not found on this server”.

This issue has been around for perhaps decades. I remember this issue existing even in 1999. and now it is 2014 when a web site gets heavy volume traffic. for some users.. at random times.. the ...
0
votes
1answer
11 views

apache2 reverse proxy 404 error

I have set up an apache2 server. I am trying to enable a site to reverse proxy in which I will redirect /registry to :5000. I have apache2 up and running and am able to reach the default page () but ...
0
votes
1answer
19 views

Mod_security - Syntax error

I have a password protected directory on my web server. To protect that from brute force attack, I tried to add the IP-Based BLocking config as below in the apache2 config file. But everytime I ...
-1
votes
1answer
9 views

VirtualHost for a subdomain and any domain

I've set up a VM running CentOS to use as a development server, and I'm adding rules to my host (Windows) hosts file, so dev.site.com, live.site.com gets redirected to the VM, which are then detected ...
4
votes
3answers
186 views

Apache multiple ldap groups

I am configuring Apache to authenticate against LDAP and require multiple groups to be present. I have done this with require statements, however I need the authentication to be successful if all ...
134
votes
3answers
87k views

What's the best way of handling permissions for apache2's user www-data in /var/www?

Has anyone got a nice solution for handling files in /var/www? We're running Name Based Virtual Hosts and the apache2 user is www-data. We've got two regular users & root. So when messing with ...
0
votes
1answer
98 views

nginx proxy to Apache/PHP is slow

My setup: nginx is listening on port 80 and working as a reverse proxy (plus directly sending static files) Apache 2 is listening on port 8080 PHP is running in Apache 2 All running on one server ...
-1
votes
0answers
10 views

Processes clogging up server process queue at same time each day

I have a small web application on AWS running ubuntu with 3 front end web servers and a database server. Each night at the exact same time (3am) we have a significant spike in "processes in the run ...
1
vote
1answer
724 views

Apache proxying to Unicorn server times out, how to avoid?

I have a Teambox installation running on Unicorn, and the latter sometimes times out after 30 seconds. The idea of this configuration would be for Apache to wait until the Unicorn master server sends ...
0
votes
0answers
16 views

Showing only domain with .htaccess and mod_rewrite

I currently have koken installed to my website (wythDOTno-ipDOTbiz/koken). I know that the .htaccess file in the koken folder is working, because it is making the url's clean by removing the ...
0
votes
2answers
50 views

iptables treating ssh and http requests differently

Here are the facts: server (IP 192.168.1.140) that runs openssh on port 22 and nginx on port 80 server sits behind firewall/router (IP 192.168.1.1) that has identical iptables rules for openssh and ...
0
votes
1answer
23 views

How to use vhosts to redirect users to another domain

A web site that we host recently changed it's domain name from www.domainA.com to www.domainB.com My vhost file originally looked like this: <VirtualHost *:80> ServerName ...
0
votes
1answer
9 views

Apache TOP command time format?

When running top on an Apache server, what is the time format for the output? For instance, is it minute:second.second? http://i.imgur.com/wBx8PAh.png Edit: I'm running on Ubuntu 14.04 and the ...
0
votes
2answers
646 views

Apache Server with memcache, varnish and php slow request times

My issue is that these servers are taking rather long for request about 2 seconds on average just to serve files. When we had just one server doing everything it was noticeably faster even with the ...
-1
votes
0answers
29 views

Apache forward proxy server - 502 Bad Gateway - Perl error

Here is the config: Listen 50600 <VirtualHost _default_:*> PerlTransHandler PayerSite::Proxy::ConnectProxy ProxyRequests On Listen 50601 ...
0
votes
0answers
10 views

nginx rewrite for php restful api apache htaccess

I have an apache htaccess file used with Restful API tutorial <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-s RewriteRule ...
-3
votes
2answers
31 views

Methods to prevent files from being visible to web?

I am testing a simple site in Windows, XAMPP. There, I use some PHP files that must not be accessed directly for security reasons. After looking around, there are many methods to do this. The simplest ...
0
votes
1answer
647 views

Is it possible to match more than one regular expression with a single <ProxyMatch> rule?

I have a production, testing, and development server for a site that I maintain. All three servers are running Apache 2.2.16 on Debian 6 GNU/Linux. I have set up a new version of our company site on ...
1
vote
1answer
687 views

Apache2 proxy Tomcat6 prevent 503 error while starting

While tomcat6 is starting up all my http requests are retained by the server and sends the response when the server is up. But when I use an apache2 as a proxy the apache2 responds inmediatly a 503 ...
0
votes
0answers
8 views

Proxy Pass not working

I am attempting to get ProxyPass to work on my OpenSUSE 13.1 install. I have tried: a2enmod proxy a2enmod proxy_http a2enmod proxy_connect systemctl restart apache2 systemctl reload apache2 (All ...
0
votes
2answers
32 views

Run multiple instances of apache with PHP5

I am attempting to setup a Dell Poweredge R720 server with OpenSUSE 13.1. I need to run multiple instances of apache (Either 1 install multiple instances or multiple installs with multiple ...
-2
votes
1answer
31 views

ssl certificate - identity not verified with godaddy

I followed all the steps to create a unique certificate that looks like this -----BEGIN CERTIFICATE----- MIAGCSqGSIb3DQEHAqCAMIACAQExADALBgkqhkiG9w0BBwGggDCCAmowggHXAhAF ...
0
votes
2answers
32 views

a2ensite fudging supplied path

When trying to a2ensite my new virtual host, I'm receiving an error indicating that the virtual host config isn't there, when the path I specified does in fact exist. The a2ensite command seems to be ...
0
votes
2answers
657 views

LDAP authentication apache 2.2 error 500

This is my LDAP configuration in Apache2.2.x Order deny,allow AuthType Basic AuthName "Test" AuthBasicProvider ldap AuthLDAPURL "ldap://dc1.domain.com:389/DC=domain,DC=com?sAMAccountName" ...
1
vote
1answer
647 views

Issue with aborted MySQL connections (error code: 4)

Some of the connections between my application server (Ubuntu, Apache, PHP) and my DB server (Ubuntu, MySQL) are failing with error code 4. According to the documentation error code 4 is: OS error ...
-1
votes
1answer
790 views

How to configure a base URL in Apache?

I have the following problem: The Apache DocumentRoot is /var/www/. The URL of the file one should get when browsing http://www.example.com/ is http://www.example.com/_www/en/home.html So I ...
0
votes
1answer
20 views

htaccess and rewrite - Internal redirect within Alias

I have the following .htaccess within a subdirectory: RewriteEngine on RewriteRule ^file.js$ file.php This works by internally redirecting the request to the PHP file, with the same name, which is ...
-1
votes
2answers
755 views

PHPMyAdmin throws an open_basedir error when using eaccelerator

I guess the PHPMyAdmin code is getting confused by eaccelerator. This is the error I get: Warning: Unknown: open_basedir restriction in effect. File() is not within the allowed path(s): ...
4
votes
2answers
2k views

set proxy in apache for XMPP chat

I want to setup a proxy settings in Apache to use Facebook XMPP Chat So far I have setup ejabber server and I am able to access xmpp service using http://mydomain.com:5280/xmpp-http-bind I am able ...
0
votes
5answers
3k views

Invalid command 'AuthzLDAPAuthoritative'

Spec : Apache 2.24 O/s : Suse /RedHat /Windows Windows : Apache httpd Linux : Apache DS (LDAP ) Task of Implementing Apache Httpd + LDAP + SSO (mod_session.so) Getting error as stated below ...
2
votes
3answers
12k views

Apache2: How do I restrict access to a directory, but allow access to one file within it?

I've inherited a poorly designed web app, which has a certain file that needs to be publicly accessible, but that file is inside a directory which should not. In other words, I need a way to block ...
1
vote
2answers
14k views

How do I enable the IMAP functions in PHP?

I have a LAMP box running Ubuntu, Apache 2 and PHP5 with Slicehost. I'm a bit new to all this sysadmin stuff (I'm primarily a web developer). I need to use the IMAP functions in PHP, but they don't ...
0
votes
1answer
711 views

Apache not showing a test page when I browse to the server running it

I have set up a CentOS 5.5 server with Apache on it. The httpd service starts just fine (no warnings at all), and I was under the impression that I should see an Apache test page if I was to browse to ...
0
votes
1answer
29 views

Migrating a server from Apache to Nginx - how is my request handled?

I'm trying to migrate a service from a server to another. It's a simple php app. On the first server (Apache) I could request a JSON in the following way: ...
1
vote
1answer
716 views

systemd httpd stop very slow under Arch Linux

When I perform a: systemctl stop httpd Apache often takes minutes to stop. The command: apachectl gracefully-stop always stops immediately. Anyone have any idea what might be causing this? The ...
-1
votes
1answer
31 views

How to setup a domain on a Linux Server? [on hold]

I would like to setup a domain name for my linux server. I can currently access it as an IP, but for public it would be easier by a domain. I already bought it, it's on namecheap. I want to set it up ...
-1
votes
1answer
21 views

Configure server for gitlab

I have a server where VestaCP installed (apache2 is back-end, nginx is front-end). Also, I successfully installed ruby, gitlab shell and gitlab. When I type sudo -u git -H bundle exec rake ...
0
votes
1answer
729 views

How to fix Apache from crashing with PHP+Curl on an SSH request?

My Apache process segfaults whenever I call curl_exec() from PHP with an "https://" URL. If I use http instead of https as the URL transport, it works perfectly, so I know curl and the other curl ...
0
votes
0answers
22 views

Monitoring apache's mod_status on CentOS by zabbix

I try implement Apache monitoring script for Zabbix just like this https://github.com/lorf/zapache/blob/master/README.md I put zapache script to /usr/lib/zabbix/externalscripts . On file I do chown ...
0
votes
1answer
914 views

Equivalent of PHP setlocale in an APACHE config file

I need to display a date in french locale. A solution is to use setlocale(LC_TIME, 'fr_FR'); But I'm looking to set the locale directly in the configuration of my apache server. In the ...
0
votes
0answers
30 views

Haproxy load balancing TPS lower than single node

I have 2 apache2 servers running in the back end and have a haproxy between them and the clients. If I bench tested anyone of these apache2 severs with ab i get north of a 1500TPS however when I bench ...
4
votes
2answers
2k views

Unable to start the Phusion Passenger watchdog

I'm trying to install Passenger (mod_rails) on Apache2 server by using the command 1. gem install passenger 2. passenger-install-apache2-module Passenger gets installed and i added the below line ...
1
vote
4answers
5k views

Trouble installing php memcache extension

I'm trying to install memcache on MAMP but I get the warning below, and when I continue it seems to complete properly. I add the line extension=memcache.so to the php.ini and restart MAMP but ...