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)

The Apache HTTP Server is a popular Open Source Web server. This tag should be used for general questions about Apache HTTPd.

Although there is large degree of commonality between the different versions in the 2.x branches, please consider using the Apache-2.2 or Apache-2.4 tags instead for more specific Apache HTTP Server related questions.

Documentation for all major versions is both comprehensive and has a high degree of accuracy.


1741 questions
2
votes
0 answers

How can I set Access-Control-Allow-Origin for multiple domains in apache2?

I have created an app in React with its backend in Python Django. I hosted the React app in Heroku and the Django app in AWS (apache2). I have faced a problem with CORS. I added the following configurations settings in my apache2 config…
Ferose
  • 131
  • 4
2
votes
1 answer

Proxy websocket with parameters through proxypass/proxypassmatch without a VirtualHost

I have been trying for the longest time to proxy a websocket with it's sid variable to the localhost service, that is serving it. I have looked far and beyond for a solution (including a lot of the questions here), but most of them suggest to use a…
smsimeon
  • 21
  • 2
2
votes
1 answer

Apache ProxyPass only one file to a different localhost port?

I haven't been able to find a solution to this exact problem: I have one app running on localhost:3000 I have a proxy set up for my localhost:3000 app with qa.mysite.com (for other js) I added a second app running on localhost:3333 The first app…
Andrei
  • 123
  • 1
  • 3
2
votes
1 answer

Automatically adding an SSL Certificate to a new AWS EC2 instance on creation

I've written a script that creates an AWS EC2 instance via API and I need to automate the install of the wildcard certificates to be used by this new instance for HTTPS via Apache. Previously, I had this solved by running LetsEncrypt/CertBot on the…
Joum
  • 151
  • 1
  • 8
2
votes
2 answers

Why do my sub domains point to other sub domains when I disable a site?

I have a personal server and I use many sub-domains on it. Each sub domain has its own unique SSL cert setup with LetsEncrypt. Each sub domain has its own vhost file under /etc/apache/sites-available/ Each sub domain has its own A record and NS…
Frantumn
  • 121
  • 3
2
votes
1 answer

Debian 8, Apache 2.4.10: Scoreboard is full, not at MaxRequestWorkers

Fresh install of Debian 8. After running my web server for a few minutes/hours, Apache2 stops working. I always get the error "Scoreboard is full, not at MaxRequestWorkers" from Apache2 error.log. This workaround works for me, however - I do not…
Hillcow
  • 121
  • 1
  • 5
2
votes
1 answer

AWS / EC2 / Ubuntu 16.04: apache2 processes although apache is not installed?

I created an AWS Ubuntu 16.04 EC2 instance a while ago and had it running for some time not really doing anything. Now as I try to bring that machine bring to service, I notice a few things I can not explain: username@hostname:~$ ps aux | grep…
ssc
  • 1,159
  • 3
  • 17
  • 30
2
votes
1 answer

Revoke/ Disable HTTP Strict Transport Security

How can I revoke HSTS header information? I have a website that I want to migrate from HTTPS to HTTP. I reconfigured Apache2 to serve only HTTP. Unfortunately, Chrome and Firefox still try to open the HTTPS version of the page automatically. I…
kerner1000
  • 143
  • 1
  • 7
2
votes
0 answers

Apache2.4 with ProxyPass Strips ExpressJS-set Headers

I've got WAMP (3.1.0 i.e. Apache 2.4) setup on Windows Server 2012R2 with proxypass to ExpressJS/Node application. In my httpd.conf: ProxyPass "http://localhost:1337/" ProxyPassReverse…
2
votes
0 answers

Is it possible to configure apache so it will retry (resend) requests to application if they fail?

We are running apache2 in front of numerous different applications. It is possible to configure apache2 so it will automatically re-try HTTP request is the request fails with some error (like 501 or something like that)? BTW, we use Proxy and…
user2196351
  • 191
  • 4
2
votes
1 answer

dashboard.example.com/link1/* to be served as link1.example.com/* always

I tried to find all over and didn't find any proper answer. I'm pretty sure this must be a duplicate but please direct me to the right answer. So this is my case. The project is at dashboard.example.com/link1 and there are 'n' number of other links…
Arun Kumar
  • 23
  • 3
2
votes
1 answer

Redirect 301 issue Apache behind Nginx

My non-www example.com has been redirected to www.example.com/index.php. Note: I'm redirecting using .htaccess and not with nginx virtual host file. RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule (.*) http://www.example.com/$1 [L,R=301] If…
2
votes
1 answer

How can I make a directory completely private from a certain user-group?

I'm running an ubuntu 16.04 web server, with both apache and nginx installed I need a setup where certain directories (dir y) are inaccessible (no read, write or execute permissions) to a certain user-group (group x) However, group x should be able…
Joe
  • 21
  • 2
2
votes
0 answers

Apache-Ubuntu: can not access my site using IP address

I have a web site running on ubuntu 16.04 vps with Apache. recently i can not access main web page using its IP‌ address. please help me debug my server configuration. main-site.conf: ServerAdmin M.Mahmoodi@avanikan.com …
Amzoddin
  • 75
  • 1
  • 8
2
votes
1 answer

Authentication of Apache+SVN server behind nginx reverse proxy

I have an Apache2/svn server which runs behind an nginx reverse proxy. Basic authentication is done by nginx, so basically the Apache2 server behind the reverse proxy does not have to do any authentication stuff. I have an entry for the user in the…
Alfi
  • 123
  • 4