Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [apache2]

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

1
vote
0answers
9 views

Does httpd reload always kill child fast cgi processes?

I have a large number of fast cgi scripts on a server and when we deploy new scripts we run a systemctl reload httpd since some of our scripts may have changed or underlying data may have changed. ...
2
votes
1answer
49 views

Let's Encrypt wildcard certificates and Apache 2 not working

I am trying to set up a wildcard certificate using Let's Encrypt on an Ubuntu 18.04 server running apache2, for domain abc.def.com (not the real domain name) and all subdomains (*.abc.def.com) I have ...
0
votes
1answer
21 views

Webserver error 503 Troubleshooting

I have a nice VPS with 4 cores, 180ssd, 8gb of ram. My website is a custom website, that autogenerates from a database, and on the first run it is cached in memory using redis. The issue that I am ...
-2
votes
1answer
52 views

How to show same content for www and nonwww on apache2 [on hold]

I just installed ubuntu and apache2. I created an index.html at /var/www/example.com/public_html/ The index.html shows up on www.example.com but on example.com it shows the Apache Its working page. ...
0
votes
0answers
15 views

Enabling WebDav on Xampp [on hold]

I am trying to configure WebDav on Xampp and as Xampp uses apache, I am using this link to configure. So far I have done this; Uncomment following in httpd.conf LoadModule alias_module modules/...
2
votes
1answer
45 views

RewriteCond %{HTTP_REFERER} ∈ %{REQUEST_URI}

Is there a way to check using RewriteCond whether the Referer includes the requested URI or... RewriteCond %{HTTP_REFERER} == 'host.com/' + %{REQUEST_URI} ... ? I need to catch whether the surfer ...
1
vote
0answers
18 views

Multiple dbd on same apache2 configuration

How can I configure apache2 to read multiple database and have multiple dbd maps on the same domain? Example. I want this two htaccess lines to be both working: RewriteRule ^(.*)$ ${firstmap:$1} [nc,...
0
votes
1answer
32 views

Suexec/Apache user is not php-fpm 'user'

Suexec/Apache user is not php-fpm 'user'. in my php-fpm pool: [cdnmin] user = cdnmin group = cdnmin listen = /run/php/php7.0-fpm.cdnmin.sock listen.owner = cdnmin listen.group = cdnmin listen.mode = ...
0
votes
1answer
56 views

Apache2 doesn't start anymore

I'm running an Debian GNU/Linux 9. I installed apache2 and now it doesn't start anymore. I already tried to reinstall it. When I type following command in shell: sudo service apache2 start Following ...
2
votes
1answer
31 views

Apache and MySQL processes running at 100% CPU

I have a production server that's usually very stable, and has been for a very long time. Last night, it suddenly started showing very high loads (150+). Deactivating Apache will decrease the load ...
1
vote
0answers
13 views

Prevent apache rewriting URLs

I'm trying to migrate a site over to Docker. I've followed a number of guides and I'm almost there. I'm using the php:7.2.7-fpm-alpine3.7 image to separate PHP from Apache. My site is in the local ...
0
votes
2answers
57 views

Google Cloud Compute Instance

I am hosting a website with apache on Google cloud platform and I wasnt sure if I should enable the ufw. Does google have a firewall already enabled on their compute instances? Thanks!
0
votes
0answers
5 views

How to set apache2 timeout based on url path?

I'm having a apache2 proxy in front of a tomcat webserver. The apache timeout in apache2.conf is globally set to: # # Timeout: The number of seconds before receives and sends time out. # Timeout 300 ...
1
vote
2answers
57 views

Apache2: two redirects

I would like to redirect all URLs to https on my host and root folder to sub-folder. My configuration: Redirect permanent / https://myhost.com/ RedirectMatch ^/$ /sub-folder/ The first redirect ...
0
votes
0answers
36 views

SSH AWS Operation time out in terminal EC2 Ubuntu 16.04 Apache 2

Hi thanks for reading, I usually connect to my instance no problem. For example: mymac:~ ssh i- path/to/my/key.pem ubuntu@ec2-really-long-public-dns This worked yesterday, however today the same ...
0
votes
0answers
20 views

drbd Failed on on primary, secondary, it is blocked

I'm trying to settup a cluster with apache(to host jenkins service), IPaddr2, drbd. The process run flawlessly until I add drbd resource to pacemaker, crm status told me that drbd FAILED on both ...
0
votes
1answer
32 views

How big of an impact requests per second and memory consumption can have on costs [duplicate]

Gentlemen, We are in a bit of a debate here. An old one, php framework or no framework. We ran some tests and core php clearly takes the lead in handing requests per second and better memory ...
0
votes
0answers
17 views

Lost permission to sites on Debian 8, Apache2, VPS

I'm hoping someone can help me. I installed a default server installatin using Debian 8 and Apache2. It has PHP5.6, 7.0, 7.1, and I just added 7.2. I realized that php-zip wasn't installed so I ...
-2
votes
0answers
30 views

How to forward requests from dns to web server with apache reataining the URL in the browser

I'm a newbie in this domain and I feel I did enough research was and not able to accomplish what I want. Things i've done Bough a domain called example.com on Godaddy; Created a website and hosted ...
0
votes
1answer
15 views

shared_id/~username is showing 404

when I'm trying to access my site it works fine with http://domain_name/ but when I'm trying to use it with http://ip/~username it goes to 404 page. Do I need to do some additional settings in WHM or ...
0
votes
0answers
16 views

PDO to mysql socket connetion trouble

I try to connect to mysql (mariadb) via socket connetcion. I have created the mysql user via unix_socket identification. Also I have given some privileges to the test db. I wrote the conn.php file as:...
0
votes
1answer
66 views

What is PHP7 error “not found or unable to stat”?

I am receiving the following error log on my apache2 server: [Mon Dec 24 09:38:48.580631 2018] [php7:error] [pid 19547] [client 5.188.210.12:11267] script '/var/www/echo.php' not found or unable to ...
0
votes
0answers
8 views

Apache2 Retransmit Issue

I'm trying to set up a local network that serves a website using apache. I am using airbase-ng and dnsmasq to set up the network. This is my dnsmasq.conf file: interface=at0 dhcp-range=10.0.0.10,...
-3
votes
1answer
27 views

weird thing for apache2 with error code 404

I've find a really really weird thing that've happened to me! there I set up a apache2 server when I need to build an apt repository I give all file with privilege 777,so I use command: wget http://...
0
votes
0answers
16 views

Apache2 Forward Proxy inspect files in download

Having simple Apache2 setup as a forward proxy: <VirtualHost *:8080> ProxyRequests On ProxyVia On <Proxy *> Order deny,allow Deny from all </Proxy> CacheRoot "/tmp" ...
1
vote
1answer
36 views

When to uncomment server root in apache configuration?

I had a server upgraded from Debian 8 to Debian 9 and there are some odd or different behaviors relating to the hosted website and applications. I'm going through and looking at various config files ...
0
votes
0answers
25 views

nginx to apache2 reverse proxy not working

I'm running an nginx as a reverse proxy and would like to serve apps running on an apache2 server. The app on the apache2 server is working and available via http://192.168.102:8080/ but I always get ...
0
votes
0answers
16 views

HTTP/2 Not working for my resources

I am using Google Cloud Compute Engine running Apache 2. I enabled HTTP2 sudo a2enmod http2 I added this to the top of my default-ssl.conf and made it global. Protocols h2 h2c http/1.1 The ...
0
votes
0answers
46 views

SSL Certificate Configuration Error on XAMPP server

I have been following this guide in order to configure SSL certificate on XAMPP server where I have enabled SSL on 4433 (as well as 443 after encoutering errors but no result, below config and error ...
0
votes
1answer
18 views

How to allow a Django application running on Apache to access a remote directory mounted with sshfs

I have a Django application that access a remote directory mounted with sshfs to upload files. The Django application has to read those files as well. The setup is running fine with the Django server (...
1
vote
0answers
38 views

apache2 - ERR_SSL_PROTOCOL_ERROR

I tried to install letsencrypt on my apache2 server (running on Ubuntu 16.04). It seems to work fine but for some reason i got the following error on my website: ERR_SSL_PROTOCOL_ERROR i cant figure ...
0
votes
0answers
21 views

Default Apache 2.4 StartServers, MinSpareServers, MaxSpareServers, ServerLimit, MaxClients

What are the default settings for Apache 2.4 prefork MPM StartServers, MinSpareServers, MaxSpareServers, ServerLimit, and MaxClients on Amazon Linux? I have a server which I don't think is specifying ...
0
votes
1answer
60 views

zend_mm_heap corrupted PHP Fatal error: Cannot redeclare composerRequire

We have a webserver where besides normal requests large files are being uploaded. Some requests (such as 1/10) are dropped. We than see following errors in the error log. ==> /var/log/apache2/...
0
votes
1answer
32 views

Use Different HTTP Protocols per Browser in Apache

I am trying to use http/2 for everything except Safari because of some strange behavior we are seeing when using http/2 with any version of Safari we have handy. I cannot figure out how to set up ...
0
votes
1answer
71 views

Apache https redirect only redirects port

Been banging my head on this one for a while, for some reason Apache refuses to properly implement https redirect. I have tried it using a permanent redirect as well as a mod rewrite and everything in ...
0
votes
0answers
100 views

Safari fails to load some resources over http/2 with Apache

I am experiencing an issue in Safari only where sites loaded over http/2 on our Apache 2.4 servers will intermittently (every 3-5 requests) fail to load certain resources. The pages always seem to ...
0
votes
1answer
20 views

Redirect https and http requests to my web app in tomcat from apache

I have a spring web application running in tomcat which I can access using https://example:8080/myApp. I have installed Apache2 to redirect port 443 requests to tomcat. now I can Access my application ...
0
votes
1answer
33 views

“systemctl start service” when service already started

I, what happen's precisely when you run systemctl start apache2 (or other service) while service already started ? Can it cause trouble to start several hundred times a day apache2 service? (to ...
0
votes
1answer
12 views

puppetlabs-apache redirectmatch to 404 is not working

guys! I tried to return error 404 when accessing some directories on a vhost. Let's say we have http://bla.com/bla1, http://bla.com/bla2, http://bla.com/bla3, etc waiting to be redirected to 404. I ...
0
votes
1answer
31 views

404 error on Apache server [closed]

I have installed Apache, PHP5, and MySQL on my new Linux Lite install for my laptop. I have edited <Directory /> in apache2.conf to look like this: <Directory /> Options Indexes ...
1
vote
1answer
132 views

Apache Start Fails due to missing mpm module

I originally posted this question on StackOverflow. Before it was taken down as off topic, the answer and comments were leading to MPM not being loaded I tried sudo apt-get install apache-mpm-prefork ...
-1
votes
0answers
25 views

Prioritize CPU ressource between virtual hosts

I have a webserver with apache2 and php7.2-fpm, hosting 10 websites. What would be the easiest way to allocate some hosts more CPU ressources ? I tried to play with fpm workers and pools, but I ...
0
votes
0answers
22 views

Apache LocationMach Regexp doesn't work

I had a simple Location directive that works just fine but attempting to add a second location with regexp make both of them fail (404): Working Location Directive: <Location /test> ...
0
votes
1answer
84 views

Tunnel Apache traffic to other port using .htaccess

I don't have access to the virtualhost configuration, and I'm trying to setup an angular Universal app on an apache server. The domain is set to the 'dist/browser' folder. The app is running on port ...
1
vote
0answers
88 views

Apache reverse proxy fails without trailing slash

I'm currently trying to set up a Reverse Proxy with Apache. I went with the following config: <VirtualHost *:80> ServerName my-server SSLProxyEngine on SSLProxyVerify none ...
0
votes
1answer
48 views

My /etc/init.d/apache2 restart failed

after I installed the mail server and tried to restart Apache2, an error occurred. enter image description here Then I open systemctl apache2.service status. enter image description here What should ...
0
votes
1answer
22 views

Mysql generate multiples connections on multiple ports on windows server 2012

I have a detail in my server, if run a command netstat it show me this. Is normal? TCP 127.0.0.1:53898 127.0.0.1:3306 TIME_WAIT 0 TCP 127.0.0.1:53899 127.0.0.1:3306 ...
-1
votes
0answers
24 views

304 not modified with apache http server

I am using apache http server in a linux device and it starts running but I am no able to access my web pages using browser. I am using firefox 63.0 version when I observed packets in Wireshark ...
-1
votes
0answers
37 views

Invalid command 'DeflateCompressionLevel', perhaps mis-spelled or defined by a module not included in the server configuration

Iam trying to run apache http server in my linux device when I am giving httpd start command to run apache server I am getting an error " Syntax error on line 1043 of /usr/conf/httpd.conf: ...
0
votes
0answers
11 views

Apache2 + mod_proxy: Add custom response header if request is handled by backend server

Is it possible to set a custom response header like Header set PROXY_BACKEND "true" env=HAVE_VERBOSE if the request was forwarded to the backend server? If yes, how? I have a few caching ...