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)

0
votes
0answers
1 view

Zend Server 8 PDO driver not found

I installed Zend Server 8, and I need to run scripts that use MySQL via the command line. I get this error when I run one of my CLI scripts: PDOException could not find driver But everything ...
1
vote
1answer
1k views

Enabling mod_wsgi in Apache for a Django app on Gentoo

I installed Apache, Django, and mod_wsgi on Gentoo using emerge (on Amazon EC2). I know that the mod_wsgi is configured in /etc/apache2/modules.d/70_mod_wsgi.conf: <IfDefine WSGI> LoadModule ...
0
votes
0answers
5 views

Django processes lock up

I'm having an issue with my Apache configuration. It is running in daemon mode and using worker MPM. The application is mostly a restful API that is serving connections from Mobile devices and ...
1
vote
2answers
9k views

Check the Number of active connections on port 80?

I have a webserver, i need to check number of connections in my server at that given time, i used following netstat -anp |grep 80 |wc -l this returned with 2542 but from my google ...
0
votes
1answer
19 views

Apache - Changing domain name and restricting access

I have two websites already configured (not by me) on Apache server (under Debian): beta.mydomain.com that is located in /www/sitebeta mydomain.com that is located in /www/site I've also created a ...
0
votes
2answers
25 views

shell command to find common IPs on a specific url from error_log

Is there a shell command to group all the most common IPs that requested a specific file via GET (or that came from a url)? For example with this command I can group requests from ip: cat ...
2
votes
2answers
133 views

Apache http to https redirection [duplicate]

I'm using below .htaccess rule to redirect all http requests to https. RewriteEngine On RewriteBase / RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} And it's working ...
0
votes
0answers
21 views

apache refuses to start when apc.shm_size is greater than 76M

I'm just setting up a new faster server for our Drupal site and was setting up APC and tried to set the apc.shm_size up to 128M however after restarting apache and reloading the APC Admin page Apache ...
1
vote
0answers
11 views

mod_security rule to block GET requests via querystring or referer

In the last days in my VPS there are many many GET requests on 1 file that cause a high memory load (all came from a single refer url, with different IPs). Until now I've blocked these requests via ...
-1
votes
0answers
12 views

Service Temporarily Unavailable error when I try to acces a spacebrew server using nodejs?

I've tried to install Spacebrew for an Arduino Yun project on a 'openshift' nodejs server, but get the following error when I go to the url: Service Temporarily Unavailable The server is temporarily ...
-1
votes
1answer
1k views

Apache mod_rewrite to return a 404 except one directory

I'm trying to configure Apache to return a default 404 page when the / of DocumentRoot is called, except for some directories in that DocumentRoot Unfortunately, I'm getting a 404 even for the ...
7
votes
2answers
665 views

apache2: Get a list of registered handlers

Is it possible, to get a list of all handlers from apache? With setHandler it is possible to create handlers. One possible usage would be to add a handler for a specific file extension (addHandler). ...
0
votes
0answers
21 views

Detect if new files/folders created in specified directory

Good afternoon, I have a trouble with Apache (2.2) + mod_userdir & PHP (5.4): Whenever I execute a PHP function like mkdir() or copy() the ownership of them will be changed to apache instead ...
2
votes
3answers
172 views

How do I setup redirection for https://example.com to https://www.example.com

I have domain like, example.com where I want https://example.com to be redirected to https://www.example.com/ Does anyone have any recommendation on how to set this up? I tried setting up a apache ...
0
votes
1answer
38 views

Naked domain not working on VirtualHost for EC2

I am using AWS EC2 and I am redirecting example.com domain to a directory in EC2 with the following virtual host: NameVirtualHost *:80 <VirtualHost *:80> ServerName www.example.com ServerAlias ...
0
votes
1answer
9 views

How do I transparently redirect only the root directory on a DreamHost.com shared server? [duplicate]

The following DreamHost wiki explains how to transparently redirect your root directory to a subdirectory.. http://wiki.dreamhost.com/Transparently_redirect_your_root_directory_to_a_subdirectory The ...
0
votes
0answers
11 views

How change to change the error page displayed when directory browsing is disabled [duplicate]

I have a directory with the following .htaccess Options -Indexes When i try to access this directory on my local server i get an error 403 but when it's on my online server i get an error 404. So ...
3
votes
3answers
2k views

RHEL 6.3 Upgrading OpenSSH & Apache

We just ran an external security scan from 403Labs against one of our servers (RHEL 6.3 x86_64) for PCI compliance and the results appeared to mainly dictate that we had a hand full of applications ...
-1
votes
1answer
14 views

Tracking the slow - how to list all processes related to web-server?

I wanted to ask people in this community about administration of the Debian based web server - its a dedicated server, hosting a single website. From time to time the web site is slowing down, on ...
0
votes
2answers
13 views

Restrict Location Match by IP via .htaccess

I have a url path defined in rewrite rules ('/admin') which I would like to restrict access to only 1 ip address. I'd image the best way would to use .htaccess rather than coding it in. I've tried ...
6
votes
1answer
59 views

What do users see when Apache reaches MaxClients?

Occasionally, in my Apache error log, I will find: [error] server reached MaxClients setting, consider raising the MaxClients setting I've purposely lowered MaxClients in the past (to 60) due to ...
3
votes
2answers
945 views

Why is my Rails application hanging?

I have a Rails application of moderate complexity running under Apache/Passenger which becomes unresponsive after periods of idleness. It takes several minutes to respond, but can be temporarily ...
-1
votes
0answers
5 views

error in tomcat missing “php-cgi”

i tried to install(windows) javabridge to connect java and php.Its giving me an error saying php-cgi missing Here is what i did. What am i missing here? 1) Copied javabridge.jar , php-servlet.jar and ...
0
votes
0answers
13 views

Proxying certains URL's to another server, while also keeping request to original server

I need to receive a request to my webserver and then spawn "a copy" of the http request to another server. Both servers need to receive this request. For instance: When serverA.com/dosomething is ...
0
votes
3answers
3k views

AWStats is processing log files but does not display them [on hold]

I've setup AWStats on my VPS to get some more insight into the traffic coming to my site. As instructed I ran a manual build/update which ran fine: sudo -u www-data ./awstats.pl -config=example.com ...
0
votes
1answer
902 views

DirectoryIndex works in htaccess but not in apache2 .conf files

I need my Ubuntu install to use index.php as the default file. Added DirectoryIndex index.php to /etc/apache2/apache2.conf Added <Directory /path/to/website/root/> ...
2
votes
1answer
29 views

htaccess regex not processing URLs properly

I'm trying to redirect (or 'rewrite') over 3000 urls for a site where we updated the SEF of most of the content pages to remove an ID number that was not needed/desired. This should be a simple ...
0
votes
1answer
19 views

How do you prevent mod_rewrite from decoding a string in the path?

I'm trying to create a restful API using mod_rewrite. I have the rule: RewriteRule v2/(.*)$ v1/index.php?request=$1 [QSA,NC,L] However the path could contain base64 encoded strings (i.e. can ...
0
votes
1answer
2k views

Access-Control-Allow-Origin “*” not allowed when credentials flag is true

I have an ajax request which connects to http://example.com:6001. However, it will work only when I open http://example.com:6001 in the browser, which loads index.html (which is run though Node.js on ...
2
votes
1answer
1k views

pure-ftpd debian, can't get www-data user working

I'm trying to add FTP access to the Apache web files, in the past I have done this with an ftpuser and group arrangement. This time I would like to make it possible to login directly as www-data (the ...
1
vote
3answers
3k views

Local SSL connections are causing redirect loop (after Ubuntu update)

Following a recent Ubuntu update, my local websites are no longer serving their pages over SSL. For example, my .htaccess file attempts to ensure /sign-in is always served over HTTPS: RewriteEngine ...
0
votes
1answer
18 views

Rewrite rule for specific domain with language (domain.de, domain.com etc.)

I have web application which is accessed via two URLs: domain.com/en/param/param domain.com/de/param/param Is it possible to create a virtual host for a language-specific domain like ...
0
votes
1answer
25 views

Does Apache mod_status give any insight to tuning Apache config?

Does the Apache mod_status output give any insight to tuning Apache prefork config? For example, using Apache's mod_status, I figured out that My server gets 3 requests/sec average, the range is ...
2
votes
4answers
2k views

Where to find and how to block blacklisted IPs and proxies?

Good day everyone! I'm looking for a way to block incoming requests from blacklisted IPs and proxies (mostly anonymous) to my server. While it's quite obvious how to do it using Apache config the ...
2
votes
1answer
2k views

Apache mod_rewrite - remove extension/add trailing slash/preserve directory structure

I am currently using the following .htaccess file to remove the .php extension from my files and add a trailing slash to all URLs: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond ...
0
votes
3answers
2k views

Port 80 apparently closed ubuntu 14.04

I'm installing a small server on the company where I work. I go to whatsmyip.org and it tells me it is 190.124.165.35. When I go to canyouseeme.org it tells me that the connection timed out for port ...
0
votes
1answer
37 views

Server ran out of HD room

A rogue script brought my centOS-based server to its knees and resulted in 0 bytes of HD room left. I since fixed the issue and everything seems to be running normally. So my question is, what ...
11
votes
3answers
4k views

Alternatives to apache benchmark? [on hold]

I'd like some tools for ubuntu that I can use to test my server, how much it can handle. Any suggestions? I've used apache benchmark before, but I'd like to try out something else. (As a side ...
0
votes
1answer
22 views

Will HTTP/2 work with Apache acting as a reverse proxy to an OpenLightSpeed server?

Before wasting my time and doing something I figured I would ask the question first. I really want to try out HTTP/2 and since Apache does not have a module for it yet I figured I would use ...
0
votes
1answer
4k views

Connection reset by peer: mod_fcgid: error reading data from FastCGI server Issues

Help is greatly needed for our server. We are experiencing random "Connection reset by peer: mod_fcgid: error reading data from FastCGI server" errors which cause a 500 internal server error. If the ...
1
vote
1answer
27 views

Apache status says stopped but still httpd process running

I am new to Apache, the server Apache status stopped but still the process is running. The web page is serving properly. When i tried to restart the process, it's not. I believe the parent process is ...
0
votes
1answer
881 views

Apache: How to switch from CGI/FastCGI Server API to DSO?

Apache: How to switch from CGI/FastCGI Server API to DSO? I want to switch back and forth. I found this answer for the reverse step, but I need the the first part: Apache: How to switch to ...
0
votes
1answer
2k views

503 Error: Service Temporarily Unavailable (Mod_wsgi, Apache, Django)

I followed the tutorial to mount a Djando application on Apache here. The Django project was created under its own directory in /opt. Any suggestions or other tutorials I can use? I reviewed few ...
-1
votes
0answers
13 views

plesk 12 404 on wrong subdomain [on hold]

We're running a plesk 12 setup hosting multiple domains but recently we noticed that inputting a wrong subdomain for domain X will redirect to the default domain, lets call it domain Y. Ideally we'd ...
0
votes
1answer
935 views

URL Rewrite and mod_jk

I want to redefine the base URL of a Tomcat webservice, mounted with JkMount. I tried the following: JkMount /myapp/* ajp13_worker RewriteRule ^/service/v1/(.*)$ /myapp/$1 [PT,QSA] The original ...
0
votes
1answer
906 views

Apache ProxyPass/RewriteRule with p flag: Return no content when response has multi-part content type i.e.images

This is a continuation of a previous question which has been implemented with a little change. Following is the structure I am going to talk about. My goal is to create the Tunnel/Proxy. ...
2
votes
1answer
1k views

Apache AliasMatch and DirectoryMatch not working?

I have the following config - please notice the Alias and Directory equivalent -- uncommented they work as expected but the dynamic/regex based versions don't - any ideas??? <VirtualHost *:80> ...
19
votes
3answers
44k views

Optimal values for ServerLimit, MaxClients, MaxRequestsPerChild directives

I'm running a traffic intense site plenty of dynamic content, mostly user-generated. The server is a dedicated one and has a total of 4 Intel(R) Xeon(R) CPU X3210 @ 2.13GHz proccesors. I need to know ...
1
vote
1answer
492 views

Too many instances of httpd and mysqld

I have a VPS with 4 GB of ram and 8 cores and about 200K Visits per day. I have DirectAdmin Installed and I always see a huge number of PIDs for httpd and mysqld in DirectAdmin Service Monitor. e.g. ...
1
vote
1answer
504 views

Ruby Enter Your Password to Create App

I have just installed ruby on rails on a Centos server with directadmin following http://blog.ilwilliams.net/installing-rails-3-with-apache-on-centos/ I'm now in a non privileged user account ...