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
0 votes
0 answers
111 views

Apache Server Config Set Headers Conditionally

I am trying to set cache age for 200 responses and no cache for rest of the calls. I tried below config, which works fine when 200 OK response comes up and I can see max-age=800 in headers But for ...
Vivek Dhiman's user avatar
0 votes
1 answer
80 views

How to add apache server config rewrite rule for encoding pipe symbol in url

I am getting a 404 error on URL that contains pipe symbol. If I encode manually with %7C for pipe it works properly. I want to add a rule in Apache conf file that automatically replaces pipe character ...
dl_coder8's user avatar
0 votes
0 answers
37 views

Server Performance experience share

I would like to know your expertise for high traffic site to choose a sever with backend. I am familiar with PHP, NodeJS and Go programming languages. Also these days more popular HTTP servers are ...
Ind's user avatar
  • 101
0 votes
0 answers
121 views

403 FORBIDDEN APACHE django

Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.1.12 mod_wsgi/4.9.4 Python/3.11 Server at localhost Port 80 I am trying to run my django project on my windows machine.. in apache this the configuration i ...
Abhiram T N's user avatar
0 votes
0 answers
437 views

Apache server working, PHP isn't

I had a php tool working on my old macbook pro. I've recently install via homebrew the HTTPD server and install PHP per a few websites. The local page loads but it seems that PHP isn't working ...
eezetee's user avatar
1 vote
0 answers
83 views

How to redirect using .htaccess in Apache

I am using the following .htaccess rules to redirect the url for following conditions: RewriteEngine On RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule ^$ https://example.com/page.php [L,R=...
Bvc...'s user avatar
  • 111
1 vote
2 answers
956 views

Fail2ban ban action error on debian

I'm not sure where to start looking for the issue here This is on debian 11 (using nftables) It seems like the nft add set ... command is failing nft add set inet f2b-table addr-set-wordpress \{ type ...
Michael T's user avatar
  • 121
1 vote
1 answer
120 views

rewrite based on script in URL

Using Apache 2.2.x -- my usual approach to blocking script kiddies from looking for various scripts on the server is to use dynamically created 'deny from' lists with the offending ip's. Works, but is ...
Johnny Canuck's user avatar
0 votes
0 answers
961 views

I get ERR_SSL_VERSION_OR_CIPHER_MISMATCH on apache server (installed with xampp on windows)

I have this version of Apache installed: ApacheFriends XAMPP (Basispaket) version 1.6.8 Apache 2.2.9 MySQL 5.0.67 (Community Server) PHP 5.2.6 + PHP 4.4.9 + PEAR PHP-Switch win32 1.0 (use "php-...
Andreea Onica's user avatar
0 votes
2 answers
54 views

how to keep website up when server resource is not available

First of all I should say I'm newbie in server configuration and managment. In my case mariadb has high cpu usage and oom killer close this service when resources are not available and website get ...
Pablo's user avatar
  • 101
1 vote
1 answer
55 views

ErrorDocs | VirtualHost | Apache 2.2.x

So, I'm having a challenge trying to get my virtual hosts (in the example, called bozo) to 'point' at the right error documents for 401, 403,... errors. I am trying the following construct, but it ...
Johnny Canuck's user avatar
0 votes
0 answers
185 views

Slow server performance due to Google Bot and Ahrefs Bot

I have a VPS server with 64 CPU cores and 128 GB RAM running on Debian. I have noticed that Google Bot from IP address 66.249.66.0/24 and Ahrefs Bot from IP addresses 54.36.148.0/24 and 54.36.149.0/24 ...
Jakub Čuřík's user avatar
1 vote
0 answers
197 views

SOAPUI What causes "error in msg parsing: xml was empty, didn't parse!"

Currently, I have a structure which takes a SOAP request, fires the request at a reverse proxy (a script written in Lua) which takes a copy of the SOAP request and then passes that to the webserver, ...
codinator's user avatar
0 votes
1 answer
619 views

Apache Authentication - Find out user password

My field of expertise is far away from server management but I am currently covering for a former collegue of mine, so I apologize in advance if my question doesn't make sense. I have to restart an ...
Mariya Mihaylova's user avatar
0 votes
0 answers
3k views

Nginx upstream wss proxy SSL_read() failed (SSL: error:0A000126:SSL routines::unexpected eof while reading)

What I need is Client <--wss---> nginx <--wss--> server I am doing a wss proxy, I have already got it working on Apache but I want to switch to nginx now here's the apache config: <...
Steve Moretz's user avatar
1 vote
1 answer
5k views

AH01114: HTTP: failed to make connection to backend: localhost

I know some of you might think that its a little bit off topic here, but am not sure whether its fault of server OR fault of my config file, so... I made React.js project , but it needs server side ...
Y U K I M U R A's user avatar
0 votes
0 answers
535 views

Apache ProxyPass only proxying URL, but not page assets

So I currently have a proxy configuration that looks like the following: ProxyPassMatch ^/foo/bar/(.+)$ https://xyz.domain.net/$1 ProxyPassReverse ^/foo/bar/(.+)$ https://xyz.domain.net/$1 ...
Ress's user avatar
  • 45
1 vote
0 answers
71 views

Apache2: mod_ratelimit only allowing half the speed

I'm trying to limit the file download speed in a directory I've got the following .htaccess <IfModule ratelimit_module> SetOutputFilter RATE_LIMIT SetEnv rate-limit 4096 </IfModule>...
DrDino's user avatar
  • 11
0 votes
1 answer
117 views

Nginx static images are not caching

I have a Magento website that is running on apache2 and the frontend is in PWA and running on Nginx and I'm using Cloudflare. Now want to cache the images but it's always showing BYPASS. Apache ...
Arunendra's user avatar
  • 101
0 votes
0 answers
45 views

Which web server can return this page with empty html tags ? Cloudflare / Nginx / Apache

I am using a monitoring tool that constantly checks server status, and sometimes it gets this empty tags reply. The monitoring service doesn't give me more info, like status code. <html><head&...
adrianTNT's user avatar
  • 1,149
0 votes
1 answer
719 views

apache reverse proxy not working

I am using my apache container as a reverse-proxy and trying to access one of my VM services. It is working when I configure like, ProxyPassMatch "^/(.*)$" "https://host1:443/$1" ...
user2664107's user avatar
1 vote
0 answers
409 views

How can I proxy pass applications to locations different from "/" with Apache?

Let's say I have three applications on my server: node-red (1880), jupyter (8888) and pgadmin (5433)... I can successfully create a localhost proxy pass with them individually as the following: <...
raylight's user avatar
  • 111
0 votes
1 answer
295 views

nginx proxy to apache in local enviroment avoid error 504

Hi guys I have a setup where I use Nginx as entry point for my HTTP request on port 80 and then I make a proxy to port 8080 where Apache is running a virtual host with PHP7.4 + MySQL running on ...
Minos Framework's user avatar
1 vote
0 answers
119 views

debian apache server slow & not responding - cpu low

i have a debian server with apache and mysql installed there. i have more visitors from 8pm to 22 pm and apache server to slow and lot of times page cant open on this period. error: This site can’t ...
wuqn yqow's user avatar
0 votes
0 answers
86 views

How to make redirect rewrite rule for https subdomain on apache (CentOS8)?

I have own domain for example. https://example.com Below is my apache virtual host with 301 redirect rewrite rule. <VirtualHost *:80> ServerName example.com DocumentRoot /var/www/html/...
joenpc npcsolution's user avatar
0 votes
2 answers
215 views

ProxyPass not working alongside ProxyPassMatch

So at the moment I have a virtual host configured on my Oracle HTTP Server instance with a ProxyPass as such: ProxyPass ^/test/home/ https://example.com/ ProxyPassMatch ^/test/home/(.*)$ https://...
Ress's user avatar
  • 45
0 votes
3 answers
1k views

CGI scripts: when can you return a document, instead of an HTTP response?

Script 1 below is bash, and is at https://example.com/cgi-bin/test. It produces the output 'Under construction' when fetched. It echos Status and Content-type headers, and some HTML. If I instead try ...
QF0's user avatar
  • 203
0 votes
1 answer
254 views

How do I add a second virtual host to an Apache server config?

I have an Apache server running on an AWS EC2 instance. Currently, one virtual host is running successfully on the server, and I want to add a second virtual host / domain, but I can't figure out how ...
HartleySan's user avatar
1 vote
1 answer
3k views

Websocket with Apache 2.4.52 and Ubuntu

I am trying to follow tutorial located here for messaging system using RatChet PHP https://www.twilio.com/blog/create-php-websocket-server-build-real-time-even-driven-application I have my domain ...
Maitri Rathod's user avatar
0 votes
1 answer
88 views

How can I port an Apache RewriteCond and RewriteRule to ngnix?

I have to convert an Apache reverse-proxy configuration that uses RewriteCond and RewriteRule, to Nginx. How can I convert something like this to nginx configuration? (this is in the main/only <...
Robert Campbell's user avatar
1 vote
0 answers
596 views

index.php displays as listing on Apache2 server

My OS is Ubuntu 22.04 I started out by installing php 8.1 I then installed Apache/2.4.52 (Ubuntu) Server Then I added the following: sudo apt-get install -y php php-cli php-common php-mysql php-zip ...
EastsideDev's user avatar
0 votes
1 answer
602 views

Redirect Base URL to Application Directory

I have an AWS server. I set up a Laravel project, and it's working fine. The project is under /var/www/MyProject, and when I go to myproject.com/public, I see the application (after entering my apache ...
Bad Programmer's user avatar
1 vote
1 answer
2k views

Why environment variable set by SetEnv in apache httpd.conf cannot be passed to php?

I set an environment variable in httpd.conf: SetEnv http_proxy "http://localhost:3128" But I cannot get this variable in php using getenv: <?php echo getenv("http_proxy"); ...
peter's user avatar
  • 123
0 votes
1 answer
4k views

How to pass through a Nginx reverse proxy to IIS and Apache

Ive been dealing with this scenario for a while and a can not find the error or the config that gets me to this: I have one domain example.com and several subdomains (app.example.com, test.example.com ...
Un tipo Random's user avatar
4 votes
4 answers
2k views

How can I see the httpd log for outbound connections?

The access log specified in httpd.conf for a website only shows the information for incoming connections. For outbound connections such as those issued by php file_get_contents function, how can I get ...
peter's user avatar
  • 123
0 votes
0 answers
618 views

Create ubuntu user with home folder located in www and restrict ssh access using ChrootDirectory to that folder

I posted this on stackoverflow and was told to post here: I am running a Ubuntu remote dev server, heavily restricted (due to compliance) environment which i previously had configured correctly for ...
user1529597's user avatar
0 votes
1 answer
607 views

How to wake my Ubuntu server on HTTP requests from LAN?

I have an Ubuntu 22.04.1 web server running Apache2 Server hosting 2 sites [Django website & other File hosting Site]. What I'm trying to achieve: Set the server to sleep all the time it is not in ...
Youssef Ihab's user avatar
0 votes
1 answer
50 views

nginx doesn't properly route to webapp and omitting path

I am currently configuring a nginx reverse proxy. The docker instance of nextcloud is available on Port 8891 server { listen 8888 ssl http2; ... location /nextcloud/ { proxy_pass http://0.0.0....
0x45's user avatar
  • 101
0 votes
0 answers
289 views

Nginx equivalent for apache mod_rewrite rule

My script is hosted on centos 7 apache server, with below htaccess: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> ...
ktiwari's user avatar
1 vote
0 answers
290 views

The Let's Encrypt cert doesn't work on Apache and FreeBSD

Our server administrator installed via Certbot the free Let's Encrypt certificate on our server with FreeBSD. But the cert doesn't work and we can't understand how exaclty we should configure the file ...
stkuser's user avatar
  • 11
1 vote
1 answer
263 views

How to deny from domain but allow ip from that domain in apache 2.4?

I am updating a .htaccess file to use apache 2.4 directives instead of the previous allow/deny syntax. I am trying to deny access from amazonaws.com because it is mostly automated traffic/bots. I ...
jdf's user avatar
  • 11
0 votes
0 answers
93 views

What settings do I use in the default-ssl.conf file on an ubuntu server running an Omeka installation?

I have an installation of Omeka running on an Ubuntu server with Apache. I’ve loaded an SSL certificate and it seems fine, but only the first page of the site will load now. Anything else gives a ‘URL ...
Ezra's user avatar
  • 1
0 votes
1 answer
231 views

Trying to install Wordpress locally by using docker where some folder symlinked to my git directory

Using this image with docker-compose.yml: https://hub.docker.com/_/wordpress Everything done by the book and it works till I tried to symlinks some folders to my git repository. This is the part of my ...
Anatoly's user avatar
  • 152
0 votes
1 answer
1k views

modsecurity wont start with an apache server

I have a Debian server where apache2 is running. I want to use modsecurity for throttling. apache2 info $ apache2ctl -v Server version: Apache/2.4.29 (Debian) Server built: 2018-01-14T11:01:58 I ...
Hussain Nagri's user avatar
0 votes
0 answers
265 views

Sites go down multiple times a day for a few minutes

Every morning I wake up to overnight Pingdom alerts that all of the sites on a particular server have gone down and come back up. They are usually down for 3-6 minutes. This will also happen in the ...
StephenCollins's user avatar
0 votes
1 answer
340 views

How to create a Proxy over Apache to Google Cloud and handle 403 failover?

Summary: I'm trying to proxy images over Apache to Google Cloud. In case of image does not exist, I want to forward a request to a different route which will return the image and save it on Google ...
iWizard's user avatar
  • 422
0 votes
0 answers
99 views

Certificate marked as "not trusted by CA

I have a rather surprising problem these last days on one of my certificates signed by my root CA (via AD-CS). I noticed that my browser sends me back a message that I have never seen in place of my ...
Sagaroth's user avatar
2 votes
1 answer
585 views

Wordpress served by nginx under non-root url

I'm trying to move my server from apache to the Nginx starting with a blog. The blog is only a part of the website and should be available under /blog/admin (I'm using WordPress only as a backend). In ...
user3193620's user avatar
0 votes
0 answers
39 views

Apache 2.2, Mac mini, Sierra, Server 5.2

enter image description hereI realise this is a all vintage stuff, but I need to have this server up and running for 6 more months. The mac server interface shows that Apache is up and running, but it ...
XLC's user avatar
  • 1
0 votes
0 answers
324 views

Apache Reverse Proxy using mod_proxy

0 Introduction I'm trying to setup a server with a main website hosted on ports 80 and 443 (let's call it example.com) and a section on this website that serves umami analytics hosted on port 3000 (...
Tox46's user avatar
  • 13