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)

Filter by
Sorted by
Tagged with
0
votes
1answer
24 views

I'm getting 503 error when I try to connect to my new environment

I already have 2 environments setup and working, I was trying to create a third one similar to the ones already created. But for the backend I'm getting errors related to the proxy I think. This is ...
-1
votes
0answers
14 views

Systemd services in Apache2 always use port 5000 : AWS ubuntu instance

I am trying to setup two systemd services in apache server on AWS ubuntu instance. Both of these services are using different ports (8080 and 9090). here is my /etc/apache2/ports.conf # If you just ...
0
votes
0answers
12 views

Apache conf Ignore Wp-admin directory

I have a apache configure file with bitnami on Google cloud. I added a rule to redirect from an non-www aka example.com to www.example.com. However I would like to make a exception in the rule that /...
0
votes
1answer
29 views

Cannot disable buffering during SSE connection

I am trying to migrate from Apache2 to NGINX and having issues with SSE connections. Everything else is working fine, the regular GET or POST requests are getting through successfully. Note that the ...
0
votes
0answers
12 views

Cant access http public IP Adress with google cloud compute engine

What did i do so far? I tried restarting apache2, i tried to see if the firewall was open but still nothing seems to work. Can someone help me, the public ip address suddenly changed and from that ...
0
votes
1answer
17 views

Set up fallback page for when docker is down

My web-application comes in docker-containers an gets started with docker-compose up. The setup exposes it on port 80, the rest happens inside the containers thanks to traefik etc. If I start it on a ...
0
votes
0answers
45 views

Apache ProxyPass to NodeJS related to recent DoS Attack?

I was recently suspended for a DDoS attack from a testbed I have running on a VPS. The testbed has an apache server redirecting subdom traffic to a nodejs app listening on a localhost port. I use this ...
0
votes
0answers
11 views

How to install new SSL on server that runs apahe2 and postfix

I recently inherited an old project that runs on a VPS without cPanel. Looking around I saw that the server runs an apache2 web server and that postfix is used for sending some automated mails. I have ...
0
votes
1answer
38 views

One public ip, two servers and SSL generation

I have a web server (centOS) running on IP 192.168.1.154 (local IP) Apache installed I have one public IP provided by ISP lets suppose 68.12.10.12 Now I am using router point forwarding it point 68.12....
3
votes
3answers
357 views

Apache: Return static string for location

For a .well-known path, I want to return a static JSON file/string. With nginx, this seems to be possible without creating that file by specifying the content in the configuration file: location /....
-1
votes
1answer
17 views

How to make it so you only have to authenticate once for a group of subdomains using a Apache virtual host?

I have a Ubuntu 20.04 LTS Server with a set of virtual host configurations that protect a group of subdomains using basic auth, for example lets say secure.example.com is password protected as well as ...
-1
votes
0answers
16 views

Trying to resolve apache crashing issues

I've been fighting this issue off and on again for a couple months and it's finally getting to me. I've been to this site (and SO) several times (among others as well) and followed the advice from ...
0
votes
0answers
16 views

Change Default Number of Processes with FastCGI on Apache

The tl;dr: I'd like to tell Apache to spawn two copies of a FastCGI process by default. The issue: I've set up an Apache server running FastCGI for a Perl content management system I've written. ...
-3
votes
0answers
13 views

How to Link css which is located out side of the document root

my folder Structure is like devlopment{ core{index.php} css{index.css} } My document root is devlopment/core, I Want to link index.css file using link tag and href i tried is ../css/index.css ...
0
votes
0answers
33 views

How can I configure “apache2” correctly using multiple sites through VirtualHost?

I configured two sites using the "VirtualHost" method in apache2, but if there is an error in the first configuration file when I call my site, it enters the second site. my configuration ...
1
vote
0answers
29 views

403 Forbidden Error when accessing PHPMyAdmin

I was using PHPMyAdmin with apache and everything was working fine. but then I stopped apache and set up Nginx on Linux mint. So I wanted to run my PHPmyadmin on Nginx and I run sudo ln -s /usr/share/...
0
votes
1answer
45 views

Do I need 2 virtual hosts for both www.example.com and just example.com?

I have 2 questions - does it matter if the ServerName in Apache's conf file starts with www? Also if I have the following virtual host: <VirtualHost *:80> ServerName www.example.com ...
1
vote
0answers
148 views

Accessing WSL2 From Public IP Address

I have installed WSL2 with Ubuntu 20.04 on Windows 10. I have an Apache server running in WSL2, and this works fine when I use a browser in Windows (Chrome) to access it via WSL IP address. As the ...
0
votes
1answer
70 views

Forwarding Apache SSL-Port to Web-App on localhost

I'm struggeling for days now to route a subdomain with SSL to a local running vue app, specifically the directus admin ui. I've done this before, like with the tool monit, and it worked like a charm: &...
1
vote
0answers
11 views

Apache with mod_authnz_external giving blank password

I am using apache2 with mod_authnz_external and pwauth for authentication. pwauth itself works (I verified by calling it from the command line), however when used by apache, I always get error code 2 ...
0
votes
1answer
25 views

Why does Apache server return 404 on subfolder, when it was previously working

I just installed some new SSL from GoDaddy on my Apache Ubuntu server. I then restarted via SSH and everything looks good. The root site (a wordpress install) now loads fine with https. However, there ...
0
votes
1answer
35 views

Custom listen ports for Apache not working

I wanted Apache (v2.4.41) to listen to port 802 and 44302 instead of 80 and 443 on my Ubuntu (v20.04) server so I did the following: Edited the port numbers in /etc/apache2/ports.conf. Now the file ...
0
votes
0answers
12 views

How redirect 403 on apache2 ubuntu [duplicate]

When I enter http://ipAddress in the browser's address field, it works. When I enter https://ipAddress it returns NotSecured website. How can I change my configuration so that it generates a 403 error?...
-1
votes
0answers
14 views

How to stop Apache logging new line \n requests?

how to stop this requests in my website access.log? 1.2.3.4 - - [08/Apr/2021:04:36:22 +0200] "\n" 400 3066 "-" "-" I have already tried with this SetEnvIf directives in ...
0
votes
0answers
20 views

Avoid earlier “503 Service Unavailable” in Apache HTTPd LoadBalancer

Preamble Having a very basic Apache LoadBalancer 1 configuration, when server_alpha immediately goes down for whatever reason, you get a 503 Service Unavailable response for the very first request ...
0
votes
0answers
15 views

I couldn't upgrade apache2 from 2.4.41 to 2.4.5 on Ubuntu vps

I'm trying to use websockets on my website running on an apache2 (version 2.4.41) but since mod_proxy_wstunnel module is only available on 2.4.5 I guess I need an upgrade. I tried this sudo add-apt-...
0
votes
1answer
18 views

Apache2: Disable web services and only use mod_proxy

Is there a way to disable the webserver functionality of the Apache2 webserver and only use mod_proxy?
1
vote
1answer
53 views

Apache Do Action Only If Path Contains

I'm using the following in an .htaccess to remove the extension from .php files: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] It works great, but how can ...
0
votes
0answers
27 views

Setting up a reverse proxy for a subdomain in apache2

Description I want to set up a reverse proxy for a subdomain. I have a domain setup on example.com which is being provided with a Let's Encrypt SSL certificate which works like a charm. It is served ...
1
vote
1answer
190 views

How to fix TLS v1.2 issues? (SSL Lab)

I need to fix this problem. Tried a lot of methods to beat this problem, but all failed.
0
votes
1answer
21 views

Restrict Direct IP Access To Website Without Affecting Other Sites

I have several sites hosted on my server. If you directly type in the IP address to the server it will take you to one of the sites, I wanted to restrict this behaviour so I used the following fix: &...
1
vote
0answers
14 views

Unsuccessful flask app deployment on Amazon EC2 instance

I am trying to deploy a flask app on an Amazon EC2 instance. I have configured everything just fine but the website does not load. It remains stuck on the loading icon as follows: Website not loading ...
1
vote
0answers
36 views

Reverse DNS and Apache virtual host

In short: Apache's VirtualHost doesn't work as intended when the reverse DNS is enabled. I'm managing a web service on a single CentOS server. It has a single IP address and multiple subdomains, and ...
0
votes
1answer
49 views

Apache Site Goes To Wrong Page If I Manually Enter HTTPS:// in the URL

If I type in example.com into the URL it redirects to https://www.example.com which is great, same with typing http://example.com I get the correct redirect to https://www.example.com. However if I ...
-1
votes
1answer
19 views

How two different applications should get served using one single apache2 virtualhost configuration

Just for assumption here testsite.com which is my php application and testsite.com/project is python application I have following settings in my apache site config file /etc/apache2/sites-available/...
1
vote
1answer
73 views

Apache Dynamic Virtual Hosts with multiple domains

I've tried this, but it gives me a 403 at /home/* What I want to achieve is that every folder under home/*/domeenid gets turned into a vhost with the servername being of that folder. Note, that the ...
0
votes
1answer
25 views

Apache redirect URL to another virtualhost

I have two sites which runs independently on my VPS, let's call them site1 and site2. They are respectively located at /var/www/html/site1 and /var/www/html/site2 I don't have a domain name yet but I ...
0
votes
1answer
24 views

Apache add new site as subdomain on server

I have two sites which runs independently on my VPS, let's call them site1 and site2. They are respectively located at /var/www/html/site1 and /var/www/html/site2 I don't have a domain name yet but I ...
0
votes
0answers
7 views

How to redirect www.site.com/example sub-section to the main URL www.site.com with Apache Reverse Proxy

My basic configuration do the following: Every GET which comes to www.example.com is made https with reverse proxy to a http server. Here is the sample config. <VirtualHost *:443> ...
0
votes
1answer
86 views

Apache2 react app + laravel REST api on same domain

So my goal is I have my domain named example.com conf for example.com <VirtualHost *:80> ServerName example.com ServerAlias www.example.com ServerAdmin webmaster@...
0
votes
1answer
26 views

How do I allow users from a specific group only to access (apache2, mysqli)?

I'm trying to set up an authentication system based on basic apache2 auth. For this I configured mod_authn_dbd to use a mysqli database set up like this: https://www.howtoforge.de/anleitung/passwort-...
0
votes
0answers
21 views

Ubuntu web application error

I have a local network in Site A, and I have a Ubuntu VM in vCenter and inside it I have web application but it stopped. In Site B with different VLAN, it's working fine; but in Site A when I access ...
1
vote
0answers
12 views

SSL certs w/Snapcraft Plume app

Using the Snapcraft app package Plume which is a publishing/blogging package using ActivityPub. The only, current problem is when an instance other than the one I've installed attempts to 'like' or '...
0
votes
0answers
29 views

Logrotate for seperate Apache vhost logs without restarting Apache multiple times

I have several Apache virtual hosts with each one logging access and errors to log files in its own directory, not the main Apache log. I'd like to use logrotate to rotate the vhost log files. I'm ...
0
votes
0answers
118 views

Issue with api request from linux

I have issue with http bearer auth json post to api. Used apps or and php methods wget console curl php curl file get contents Sucessfull scenarios - post request Computer connected to same network ...
0
votes
1answer
87 views

Static files with Python, Apache (Proxy) and SSL [duplicate]

It's my first question in the community, i apologize in advance if I write something wrong I developed an application in Python (Django) and in the quality environment I am using gunicorn to provide ...
0
votes
0answers
14 views

Wordpress with apache reverse proxing page with post permalink won't redirect posts

I've setup a wordpress on wordress.server domain. It is served behind a server which has applications running, so i've only added to it a Proxypass. When i type https://main.server/portail i'm ...
0
votes
1answer
335 views

curl: (60) SSL certificate : unable to get local issuer certificate - ubuntu

We run the following software versions: Ubuntu 18.04.5 Apache 2.4.29 curl 7.58.0 We run an education application, and as part of this we have numerous APIs which upload files to a third party ...
1
vote
1answer
11 views

Space in value part of RewriteMap

This question is related to Apache RewriteMap with URLs containing space doesn't work, but in this case the issue is a space in the value part of the map, not the key part. Say I have this entry: /...
0
votes
1answer
48 views

HA-Proxy errors in configuration file

Below is the configuration file for my haproxy in which i want to setup the varnish as backend & in frontend want to configure the Port-80 for http & for the port-443 for https global log /dev/...

1
2 3 4 5
29