Questions tagged [apache-2.2]

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)

Filter by
Sorted by
Tagged with
52 votes
11 answers
112k views

How do I tell if apache is running as prefork or worker?

How do I tell if apache is running (or configured to run) as prefork or worker?
1 vote
2 answers
3k views

Getting a 503 error but there's nothing in the Apache error log

I'm getting a 503 error whenever I try to request any page. I really don't know how to go about fixing this problem. I've checked the error.log and this is what it contains: [Fri Jan 13 19:03:41 2012]...
0 votes
3 answers
5k views

"error module dav_svn does not exist"

I accidentally deleted the mod_svn on my webserver, and now I am stuck. Everything I try to do anything with it (remove it or reinstall it with apt-get), I get that message and apt fails. I know I ...
4 votes
1 answer
4k views

Apache mod_deflate not compressing javascript and css files?

"GET /Symfony/web/app.php/app/dashboard HTTP/1.1" 4513/37979 (11%) "GET /Symfony/web/css/application.css HTTP/1.1" -/- (-%) "GET /Symfony/web/js/application.js HTTP/1.1" -/- (-%) "GET /Symfony/web/js/...
2 votes
3 answers
3k views

Apache mod_expires

I am rather confused with the whole access and modification. I want the files to be cached until they are modified. If the data is the same, show cache version. If data has changed, download updated ...
0 votes
2 answers
4k views

Takes long time to load the login page from Apache web server

We have an Apache web server 2.2.22 installed in Ubuntu 12.04.4. The site uses PHP pages and MySQL as database in a dedicated DB server. Once in a while, we face slowness connecting our site and see ...
0 votes
2 answers
5k views

Apache to listen to multiple ports

I have achieved setting up multiple virtual NIC in 1 VM, and bind websites to different IP on 1 server, e.g., access 2 websites by: http://10.188.2.150 http://10.188.2.152 <--both IPs belong to ...
2 votes
1 answer
10k views

2-way SSL with apache forward proxy

I'm working to set up Apache as a forward proxy with a client that uses 2-way SSL. The basic flow is myApplication --via http--> Apache proxy --via 2 way SSL--> client. After setting everything up, ...
0 votes
2 answers
8k views

net err connection timed out

I have Apache/2.2.22 on Ubuntu 12.04. Apache is set as reverse proxy server. So when accessed from a remote system, the page and contents are displayed. But after some time the server seems to ...
0 votes
1 answer
94 views

Apache LogFormat: what does %f mean?

I have checked the apache logformat from - https://httpd.apache.org/docs/2.4/mod/mod_log_config.html I am not able to understand what does "%f" parameter mean in apache log format. The ...
3 votes
3 answers
4k views

How to configure apache as a reverse proxy with the remote server specified in a query string parameter

Problem: I'm trying to configure apache as a reverse proxy where the remove server is specified in a query string parameter. Let's say I'm serving a site at mywebapp.com. If you navigated to http:/...
0 votes
3 answers
6k views

Apache never wants to run my python scripts

Environment: Ubuntu 16, Apache 2.4 The last three times I tried to setup Apache to serve up Python I run into the same problem: Apache wants to let me download the script instead of running it and ...
2 votes
1 answer
5k views

Apache (http) behind load balancer (http/https) - Redirect does not preserve https

I have two configurations - development and staging - with (supposedly) identical configurations: a set of HTTP-only Apache instances sitting behind a Citrix load balancer that allows both HTTP and ...
0 votes
1 answer
7k views

Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.(while selecting multiple columns)

am using apache 2.2.i have written this code when 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 ...
4 votes
2 answers
20k views

Redirect http to https apache on different port

<VirtualHost *:82> SSLEngine on SSLCertificateFile /etc/ssl/certs/cert.pem DocumentRoot "/var/www/site" <Directory "/var/www/site"> allow from all Options -Indexes </Directory> </...
3 votes
2 answers
9k views

Ubuntu + Apache doesn't work on port 80

I have some problems with apache (OS Ubuntu). for some reasons apache doesn't work on port 80. For this settings: etc/apache2/ports.conf Listen 80 <IfModule ssl_module> Listen 443 </...
1 vote
3 answers
8k views

Debian Apache2 SSL Issues - Error code: ssl_error_rx_record_too_long

I'm setting up apache on Debian lenny and having issues with SSL. I've been through numberous tutorials and i had this working on Ubuntu server, but for the life of me can't get anywhere with Debian. ...
3 votes
1 answer
7k views

mod_rewrite Proxy - maintain host headers

I am using mod_rewrite to proxy a sub-directory like this: RewriteRule ^somedir/(.*)$ http://proxy.example/somedir/$1 [P,L] That means that requests to http://local.example/somedir are proxied to ...
0 votes
0 answers
210 views

Internal Server Error when deploying Laravel using docker & reverse proxy

I'm trying to deploy my Laravel apps using docker. But got internal server error when accessing the url. I have 2 server, one is for public ip & reverse proxy, and the second is where the Laravel ...
0 votes
1 answer
410 views

peer closed connection in SSL handshake while SSL handshaking to upstream

I have the below flow jmeter concurrent api request -> magento-host-server -> magento-container The below error occurs only during the concurrent requests from apache jmeter of testing team are ...
2 votes
2 answers
4k views

How to create a very simple external FastCGI configuration in apache?

I have an externally started FastCGI application that listens on socket '/tmp/foo.sock' and a directory of static files in '/srv/static'. Apache has all needed permissions on the socket and the ...
4 votes
1 answer
5k views

Jetty Service on Windows Server 2008 using Procrun: Missing service ImageFile

Xe want to run Jetty as a service on a Windows 2008 Server Virtual Machine. Therefore, I configured Jetty as a Windows Service using Apacke Procrun, following this short description: https://...
1 vote
2 answers
5k views

HTTP working HTTPS not working

I set up Comodo SSL on CentOS 6.7 and Apache/2.2.15 and we are running a CakePHP application on the server. When I go to http/domain its working but when I go to httpS/domain it says 404 Not Found (...
0 votes
1 answer
16 views

Slow transactions in sub-domain

Wonder if you can help solve this little problem. I administer a system that has Wordpress in the parent domain and an api being served from a sub-domain. Normally, the api returns results to its ...
6 votes
1 answer
6k views

What controls the cleanup of the /tmp/systemd-private* directories?

It doesn't seem like the systemd-tmpfiles service cleans up these folders because I have files in /tmp/systemd-private-*-httpd.service-*/tmp/ that are 27ish days old (the last time httpd was restarted)...
1 vote
1 answer
4k views

mod_security2.so: undefined symbol: ap_unixd_set_gl

service httpd restart Stopping httpd: [ OK ] Starting httpd: httpd: Syntax error on line 205 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/...
0 votes
2 answers
4k views

Convert HTTP request to HTTPS through Apache and Squid

We have a service running internally that needs to upload files to S3 and all outgoing traffic currently routes through a Squid server I manage. The service that sends the files only supports HTTP but ...
0 votes
3 answers
4k views

Apache2 - Can not open error log file

I'm installing Apache2 on Debian Wheezy. After the file's mod /etc/apache2/sites-available/default-ssl, I wrote apache2 for running the service. Sadly, the Linux shell backs this string: (98)...
1 vote
1 answer
4k views

Apache SSL virtual hosts sharing same DocumentRoot

I have a web server with two domains pointing to the same document root. I have separate SSL certs for the two domains. I want (almost) everything that comes to the site(s) to run under SSL. All works,...
1 vote
0 answers
314 views

Apache proxy unable to reach Docker container despite port being exposed and open

I have the most basic Apache proxy setup ever which I can't get to work. On a CentOS server I'm running a regular Apache/httpd setup which serves a few websites. Apache listens on port 80 and 443. ...
0 votes
1 answer
194 views

Hosting Laravel Filament apache server responded with a MIME type of ""

I been trying to host my laravel filament project into my server using apache but upon deployment i met 2 problem i never seen before pic related Failed to load module script: Expected a JavaScript ...
1 vote
2 answers
4k views

How do you force an Apache Load balancer to rewrite http 302 redirects to https?

I've got a website that I want to always be served in https. The site is load balanced using Apache. The Apache load balancer is configured basically like so: <Proxy balancer://mycluster> ...
0 votes
1 answer
4k views

Where should I start to try and debug a CPU spike and timeout when logging in to a Moodle site?

apologies for the newbie nature of this question .. I am a web developer though don't have too much experience maintaining servers or debugging and fixing performance issues. I have a Moodle site (...
0 votes
0 answers
70 views

How Do You Block & Unblock Internet Sites in Apache?

How do you block all internet sites and only let some sites through in Apache Proxy? I want to block all sites except some (e.g. updatemicrosoft.com, .windowsupdate.com , google.it etc.) I have ...
32 votes
4 answers
199k views

How do I cleanly remove apache2 server on ubuntu server and then reinstall?

I am having some wierd issues with Apache2 server on my ubuntu server. I believe some configuration files may have been tampered with. What is the easiest way to remove apache2 completely from my ...
0 votes
1 answer
4k views

Apache files directive for single file

I'm trying to restrict access to the wp-login.php file of a wordpress installation to a single IP address using the following .htaccess directive: <Files wp-login.php> order deny,allow ...
174 votes
9 answers
348k views

Is it possible to generate RSA key without pass phrase?

I'm working with Apache2 and Passenger for a Rails project. I would like to create a self-signed SSL Certificate for testing purposes. sudo openssl rsa -des3 -in server.key -out server.key.new ...
1 vote
2 answers
1k views

Change apache MPM prefork to worker on Amazon Linux AMI

My project by default is running under Prefork MPM. Rigth now i am having some slowing issues, my web got timeout error. Searching on differents foroums i see that is recomended to use the worker ...
0 votes
1 answer
387 views

Nginx reverse proxy to apache server, redirection gives 404

I have this setup with angular and spring boot project having nginx reverse proxy to apache for serving angular application and embedded server for spring boot reverse proxied through nginx. Now I am ...
0 votes
0 answers
40 views

What is the correct URI for connecting to the Websocket server in my case?

I am using proxyPass to redirect my websocket inquiries as such : SSLProxyEngine on ProxyPass /rooms/325 wss://cdn.dummy.com:443/rooms/325 ProxyPassReverse /rooms/325 wss://cdn.dummy.com:443/rooms/325 ...
0 votes
1 answer
71 views

Need equivalent .htaccess rule in apache just like nginx so I can get everything in URL

I have a VPS where I am using nginx and uses following to do URL rewriting. location / { try_files $uri $uri/ /index.php?$args; } Then I simply go to index.php and use the following code to get ...
31 votes
3 answers
23k views

Non-interactive creation of SSL certificate requests

Is there a way to create SSL cert requests by specifying all the required parameters on the initial command? I am writing a CLI-based web server control panel and I would like to avoid the use of ...
-1 votes
1 answer
2k views

OpenSSL 1.0.2 SHA1 requirement causing HTTPS compatibility error with Microsoft Edge 119 ERR_SSL_PROTOCOL_ERROR [closed]

I encountered the problem described in this Thread but with the Microsoft Edge browser version 119, which has been published on November 2, 2023. The problem only seems to occur on webserver instances ...
0 votes
1 answer
83 views

Apache 2 ProxyPass Only The Homepage And Not Other URLS

I have Laravel and Nuxt hosted on example.com Nuxt running on port e.g example.com:3001 Laravel apis working on example.com/api/{dynamic} Now I'm want to render homepage only on Nuxt and I tried ...
33 votes
7 answers
170k views

Apache VirtualHost with mod-proxy and SSL

I am trying to set up a server with multiple web applications which will all be served through apache VirtualHost (apache running on the same server). My main constraint is that each web application ...
0 votes
0 answers
213 views

why is docker not responding to apache2 port 443 proxpass but fine on port 80?

I have an Azure VM which has an apache2 running with the following configuration, <VirtualHost *:80> ServerName .com ProxyRequests On ProxyPass / http://127.0.0.1:...
13 votes
2 answers
64k views

Simple apache proxy not working

I just wanted to test a reverse proxy simple setup, redirecting every request just to google. Anyhow it does not work! Trying to browse on localhost, I just get the apache "it works" default page, but ...
0 votes
0 answers
44 views

Apache - How to compress (gzip) only specific calls

I have PHP application served with Apache 2.4 I need the apache to compress (mod_deflate - gzip) calls for specific users. So the application should decides dynamically which calls gets gzipped. I was ...
9 votes
2 answers
19k views

How to setup Apache 2.2.3 to send "last modified" etc

and to tell browser to reload an object (and/or a page... everything on the site) only if is been modified since last visit time??? htaccess, httpd.conf... have you a ready directive right for my case?...
1 vote
3 answers
3k views

Blocking ips with .htaccess behind varnish

I have the following issue. I have a normal apache/varnish installation on a server with 5 IPs and varnish sends each request to apache using the local IP (which i think is normal since in the backend ...