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
0answers
13 views

Is it possible disable redirect(301) for preflight request to 200?

I have some api http://myapi.com. I added tls 1.3, moved to https://myapi.com And now my angular client cannot send requests to api http://myapi.com. Errors appears: Response to preflight request ...
0
votes
0answers
19 views

Summarize first column same field

I have some datas with URL's and used network data. I made a custom file with these data's and i stuck last one step. What i have now: sevroland.api.url.com 488 www.logstach.url.com 42725 ...
0
votes
0answers
17 views

Bots causing server to crash - getting error “server seems busy” in apache logs - need to update prefork settings?

So after my website ( running on a Rackspace 2GB ram centos 7 instance) went down twice this week I went through the logs and seems the culprit are bots ( search engine and others.. ) The bots seem ...
0
votes
0answers
77 views
+50

Move nextcloud to sub url but put a public folder at root (with nextcloud + nginx + nginx-docker-gen all in docker)

I have nextcloud running on https://cloud.museumsstrasse.at but since we will use nextcloud primarily for opening data to the public I would like that this nextcloud root url leads to a public ...
0
votes
0answers
17 views

How to correctly tune Apache and mod_wsgi

I'm using Django with mod_wsgi and need to tune the httpd.conf to handle 500 requests per second at peak. Right now I have the following configuration: StartServers 3 ServerLimit 15 MinSpareThreads ...
1
vote
1answer
13 views

php geoip not working on ubuntu 18.04

I can't get the GeoIP PHP extension working on Ubuntu 18.04 with PHP 7.2 i have intalled it by the cli: sudo apt-get install -y php7.2-geoip Its enabled in system but not working: php7.2 -i | grep ...
0
votes
1answer
68 views

Why returns apache a http 500 but does not log any errors?

On a 12 year old (web) server is still 1 old (custom) PHP application hosted. We want to shutdown this server and remove it from the rack. Unfortunately we still need the application, is not actively ...
1
vote
2answers
38 views

For SPA, rewrite requests to root index.html only after checking for index.html in sub directory

I have an Apache site with a mix of ReactJS SPA (dynamic) routing and static HTML files. It's common to see rewrite strategies that direct all requests on non-existing files to /index.html at the root ...
0
votes
0answers
36 views

.htaccess remove string at the end of url

Suppose I have urls like these: /toys/id-2005200520056-what-ever-toy-name I would like to only keep the id part: /toys/id-2005200520056 The id always has 13 digits. This is what I tried but it's not ...
0
votes
1answer
39 views

is ProxyPass good practice

I wonder if mod_proxy is a good practice because i have an apache http server which delvier my application ressources html/css/jss and for specific url I use ProxyPass to external IP. By example url ...
0
votes
0answers
28 views

very different apache benchmark results from different locations?

I've got two rather decent dedicated servers from Hetzner.de, in seemingly different datacenters. When I run this on SERVER2: ab -n100 -c5 'https://<SERVER1>/my_script.pl' I get about 25 ...
0
votes
1answer
45 views

Restarting Apache with PHP

How would I go about restarting Apache with a PHP script while keeping correct security measures on a production server? This is because restarting Apache requires the use of sudo or root privileges, ...
0
votes
1answer
46 views

How to add logging to Apache If/Else?

No matter what, Apache is always going to the else block. I've looked at this one, but this one is using a user-defined environment variable. I'm trying to use an apache header to do some dynamic ...
0
votes
1answer
18 views

How to plug Apache to several ldap servers with mod_authnz_ldap?

The apache mod_authnz_ldap AuthLDAPURL directive can have several ldap URIs as showed in the doc: AuthLDAPURL "ldap://ldap1.example.com ldap2.example.com/dc=..." However, if I need ...
1
vote
1answer
39 views

How to redirect all /client pages to a different url?

i want to modify my .htaccess file such that all sites with /client path redirect to another website without changing the URL. For example: www.example.com/client/james will show: www.site2.com/james
0
votes
1answer
28 views

Is there a method to check the given document root directory exists in Apache2 virtual host?

I want to check the root directory exists or not in Apache2 virtual host. If it doesn't exist I want to point the virtual host to a default directory. Is it possible?
0
votes
0answers
21 views

Ubuntu server stops responding after a precise amount of time each time it turns on?

The title says it all really. I have some docker apps running different stuff on my server, backed by a reverse proxy so I can access each docker container via subdomain. It's a very powerful server (...
1
vote
1answer
30 views

Legacy php app - what's the correct order to update things? [closed]

I have a legacy PHP application running on: HTTP 1.0 Apache 2.4.10 PHP 5.4.45 MySQL 5.5.42 I have an open source framework which the previous team have manually been writing changes into, so we ...
0
votes
1answer
112 views

How to renew Let's Encrypt certificate that fails with port error even though Apache is stopped?

I am trying to renew the Let's encrypt certificate for an AWS Ubuntu instance that is running Bitnami Parse-Server for the purpose of being the backend for an iOS app. When the iOS app crashed with ...
0
votes
2answers
280 views

SSLProtocol: Illegal protocol 'TLSv1.1' in linux

I know u think this a duplicate question but hear me out first. I am not able to find the answer with a system with same conf as min so here is my server conf: Red Hat 4.1.2-44 CentOS release 5 ...
0
votes
1answer
10 views

svn apache prevent anonymous read dav_svn.authz

So I have gone through about a dozen other threads as well as read the http://svnbook.red-bean.com/en/1.8/svn.serverconfig.pathbasedauthz.html I feel like I have tried everything, and either there is ...
0
votes
0answers
30 views

Docker apache and angular

I have an Apache server (in docker) that distributes to several applications. I have an application in Angular that I want to deploy on my server, but when accessing through the domain, it is giving a ...
0
votes
0answers
49 views

Apache proxypass 401 not working

I'm trying to serve custom html 401 on the Apache webserver, not through a proxy. The files are under /var/www/html/401 in the central webserver, but no matter what, apache wants to serve the proxied ...
0
votes
0answers
36 views

How to log upstream IP in Apache HTTP server?

I'm using Apache Http server as a reverse proxy. I am interested in logging the upstream server IP in access and error logs. I'm looking for something like upstream_addr of Nginx web server.
0
votes
0answers
47 views

Apache - (104)Connection reset by peer: [client x.x.x.x:4712] AH03308: ap_proxy_transfer_between_connections: error on sock - ap_get_brigade

I have a django app deployed to elastic beanstalk: http://django-env.eba-bcvm9cxz.us-west-2.elasticbeanstalk.com/chart/ I'm following this tutorial: https://medium.com/@elspanishgeek/how-to-deploy-...
1
vote
0answers
16 views

Is it possible to configure Apache to return a blank reason phrase instead of “OK” for an HTTP 200 response?

Instead of this: HTTP/1.1 200 OK I want the server to return this to the client: HTTP/1.1 200 Both responses are RFC-compliant. This is for doing regression testing on a broken HTTP client. Running ...
0
votes
1answer
33 views

Hostname won't resolve correctly if apache ServerName isn't localhost

We have a lamp centos 7 server in a datacenter, behind some sort of a Nginx proxy. We only have control over our centos server, we don't know anything about the proxy/firewall or anything. We have ...
0
votes
0answers
22 views

Dealing with IDM (internet download manager) connections to server and rate limiting

I run a file hosting platform, and am struggling to work out how to handle IDM (internet download manager) connections. When a file is requested, I create a download token, which expires after 10 ...
0
votes
0answers
11 views

Trigger email warning when apache can't write access log

Sometimes apache is not able to write the access log and we lose data of the visitors. We're not sure why this happens but it would be useful to get an email warning at the moment to debug or at least ...
1
vote
0answers
31 views

Setting Apache SSL path dynamically based on domain

Trying to replace SSL path with the current domain. <IfModule mod_ssl.c> <VirtualHost *:443> ServerAlias * UseCanonicalName ...
0
votes
0answers
45 views

Tomcat Trailing Slash With Proxy Forwarding

I am running Tomcat 9 behind an Apache 2 server on Ubuntu 18. I am using a reverse proxy to send traffic to Tomcat with the following in the apache conf file: ProxyPreserveHost On ProxyPass "/" "...
0
votes
0answers
35 views

Apache failed to start with PrivateTmp=true after I changed the /tmp folder

Apache service cannot start and I know the reason but not sure how to fix it: Apache error: apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; ...
0
votes
0answers
19 views

How to do port forwarding from EC2 public IP to another EC2 IP?

I'm running two apps on a single EC2 instance: Website on Apache running on Port 80 Java Application on port 8080 which is used by my android app. The way I access Java application by hitting the ...
0
votes
0answers
10 views

After installing SSL on server website is not working . Assessment failed: Unable to connect to the server

Hi I followed this document https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04 and after installing I unable to open my website and I checked ...
0
votes
0answers
19 views

Using Apache LocationMatch to set header not working for websockets

I'm trying to set a response header on apache using the below LocationMatch: <LocationMatch "^/websocket"> Header set Strict-Transport-Security "max-age=86400; includeSubDomains" </...
0
votes
0answers
27 views

Nginx - Serve proxy pass target as IP instead of internal DNS

I frequently use Nginx as reverse proxy for deserving all my internal hosted applications. Most of the time, these applications are called with a IP-based address & everything works well. This ...
0
votes
0answers
28 views

Get Request: cURL error 7: couldn't connect to host

I am trying to make a GET request to a url from my wordpress installation to get the access token but I receive this error: WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [...
1
vote
0answers
14 views

Apache / php7.4-fpm: “malformed URL”. Your Browser sent a request that this server could not understand

I'm configuring an apache vhost to use php7.4-fpm. Any requests to the host yield a '400 Bad Request' response. The vhost definition is as follows: DocumentRoot /var/www/test.localdev ...
2
votes
1answer
24 views

Weird characters in log file during outage (^@^@)

We have apache serving files and proxying requests through to our api and today there was a new thing in the logs that I can't explain. I'm investigating an issue that caused downtime and looking at ...
0
votes
1answer
25 views

Route traffic from certain site/url to a number of hand-picked nodes in a load balanced environment

I inherited a loadbalancer (mod_proxy) setup consisting of 5 nodes. The setup serves a number of 6 sites (site1, site2 etc, with shared disk space) and would like to know if there is a way to route ...
-2
votes
1answer
44 views

a site use Linux Server take long time to load

i get this problem first time since 5 years i use same site same script without any change . i have a site xxxxxxx.com (php script) use a ip http://1.1.1.1 (example) , i use centos as OS for the ...
0
votes
0answers
19 views

Mean stack running o apache running slow

I have a mean stack running in an apache server. I have to restart the server from time to time, I have no idea why, in order for it to load: it loads for a short amount of times, then starts to ...
0
votes
1answer
52 views

Apache reverse proxy 503 custom page not working

I am running a docker container with exposed port 8001 on my host. The host is reachable from the host with localhost:8001. I am also running an Apache server on port 8000. My Apache configuration ...
1
vote
1answer
82 views

linux getfacl shows the correct permissions but user cannot rm a file from command line. “Permission denied”

This scratch file was created by apache -rw-rw-r--+ 1 apache apache 1960 Nov 16 2019 zlz7v5y9.php When executing the following: -bash-4.2$ rm zlz7v5y9.php I get: rm: cannot remove ‘zlz7v5y9....
0
votes
1answer
58 views

Cpanel NodeJS app displaying source code

I have set up nodeJS app on cpanel using cpanel nodeJS selector. Apps root directory is /home/userName/public_html/server. The app is working fine. Problem is if I send get request to example.com/...
0
votes
0answers
24 views

Where do I include my ProxyPass in Bitnami's Node.js server (with Apache)?

I've set up a Bitnami Node.js server on AWS Lightsail (running Apache). I then ran the Bitnami HTTPS Configuration Tool: sudo /opt/bitnami/bncert-tool This edited and created several Apache config ...
2
votes
0answers
97 views

Process blocking or disk corruption? Very high load + wait times, but low CPU/memory use

I am using a vServer that is suddenly experiencing very high wait times (10/20/30 seconds) or even timeouts on basic requests since yesterday after being in use for over a year without any problems. ...
0
votes
0answers
27 views

Getting error trying to feed SSL passphrase to apache

I've got scripts which restart apache so I've been trying to find a way to restart apache without it asking for the ssl passphrase as this means it won't restart in the script. The two solutions I ...
0
votes
0answers
58 views

AMPPS cannot stop apache

I clicked the stop button in AMPPS, but it cannot stop Apache from running. Also tried run as admin, which did not work as well. What do I need to do to correct this error? I don't even know what ...
0
votes
0answers
13 views

Using an AD Domain for Authentication in PHP

I am running apache2 with PHP Version 5.6.20-0+deb8u1 on an amd64 Debian 3.16.7 that is not connected to the internet. What I want to do is to authenticate users on a PHP website using the available ...

1
2 3 4 5
342