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

Blocking Server Access - Apache

Asked this on Stack Overflow and thought this would be a better venue. I want to block access from internalservername.admin.company.com. I'm clearly doing something wrong because I either 500 domain....
0
votes
0answers
9 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
2answers
33 views

PHP files displayed as text

When I want to execute a php file it's displayed as text in my browser. I have a VPS at Hostinger I installed Ubuntu 18.04 with Webmin and LAMP(installed automatically). I checked the installation ...
0
votes
0answers
11 views

Unable to connect to website on internal server within LAN [closed]

Complete noob with things like this so bare with me; all help is greatly appreciated. I have a server at home that I intend on hosting multiple websites i'll call website 1 & website 2. ...
0
votes
1answer
29 views

site looping redirection in apache2

Here is a site i recently tried to setup.. when i try to access it for some reason it always redirects back and forth www to non www without end. Here is my apache2 virtual host.. i really can't ...
0
votes
0answers
20 views

How to host a site using apache2 on Ubuntu 20.04 with ip_adress/phpmyadmin accessible

I have a VPS setup with Ubuntu 20.04 and LAMP installed. I could access phpmyadmin then via <ip_address>/phpmyadmin. Later I enabled a virtualhost at /etc/apache2/sites-available/ by adding ....
0
votes
0answers
11 views

Apache BasicAuth Require valid-user not working, Require user test works

I am trying to Reverse Proxy an API and protect it with BasicAuth. I have done this successfully in the past on other servers running Apache, on this server, but with Shibboleth, and on nginx. I have ...
-2
votes
0answers
13 views

php file of pages is not working with the site index.php

I copied it to apache2 /var/www/html/ecommerce and used localhost/ecommerce and found the home page with missing bits not displaying
0
votes
0answers
22 views

apach 2, how to disable TLSv1 and TLSv1.1? [solved]

After some search on the web (even on https://httpd.apache.org/docs/trunk/ssl/ssl_howto.html#onlystrong), my server still allow TLSv1.0 and TLSv1.1 My config: Linux version 4.19.0-8-amd64 - Debain ...
1
vote
0answers
34 views

Apache2 mod_substitute not working in <Location>

I have a working Reverse Proxy that is active only on a specific Location in my site, in this case for example: www.example.com/reverseproxy/site1 I am reverse proxying site1. I want to replace some ...
0
votes
1answer
25 views

How to prevent Apache2 malware execute

Is there any way to prevent to execute some unwanted malware in Apache2. One of our clients Wordpress website is hacked and there was a files like /wp-content/uploads/2020/05/U27I0x Those files ...
0
votes
1answer
28 views

Two sites on the same server with unwanted redirection

I have two different sites domain1.com domain2.com Problem : I only can access domain2.com by using www.domain2.com If i try domain2.com it redirects to domain1.com. Configuration files: domain1....
0
votes
0answers
33 views

Does mod_pagespeed PURGE downstream when its cache purges?

Does google mod_pagespeed send PURGE requests to configured downstream reverse proxies when an item in the mod_pagespeed cache is purged? I'm running Debian 10 with varnish 6 (a varnish 4.0 vcl) ...
0
votes
0answers
40 views

Ubuntu Server - Network card could not be found in ifconfig [closed]

I have problem with Ubuntu Server 18.04.4 on Virtual Box. I have one Network adapter enabled: Bridged Adapter. When I type ifconfig in Ubuntu Server only this is showing and I need IP address for ...
0
votes
1answer
17 views

Proxy service only responding on some IP addresses (others suck on SYN_RECV)

I have a server using a proxy service (WAF etc) which forwards packets to my server. I can see established SSL conenctions from all proxy netstat -an and the rest stuck in SYN_RECV: tcp 0 ...
0
votes
1answer
18 views

Jenkins or Apache changes the URL when using reverse proxy

I have a VPS that I use to run a personal Gerrit and Jenkins server. After a year of neglect I finally decided to get it working again. Previously I have used gerrit.server.com and jenkins.server.com, ...
0
votes
1answer
17 views

How to lets-encrypt several virtual servers on apache

I host several instances of the same ruby on rails application via passenger on an Apache server. In the past these applications have been made available via separate Domains. But now I received a ...
0
votes
1answer
22 views

Apache Frontend to tomcat:8443

I've been trying to do this for a few days to no luck. So basically i want my apache proxy to redirect the user to a tomcat on :8443. If i go to domain.com:8443 it displays the correct page but if i ...
0
votes
0answers
9 views

Owncloud on Raspberry Pi fails, apache2 error log says php_intl can't load, PHP CLI fails to load it, tried installing libicu64 but it didn't work

I am running an Apache server on a Raspberry Pi 4 using Raspbian Buster, with Owncloud 10.4.1 installed as a web app. When I start the server, I get the following error message on /var/log/apache2/...
0
votes
0answers
45 views

Cannot acces we page after change port 80 to 8123

I m running a web page (Wordpress) in Ubuntu server, I needed to change default port from 80 to 8123. So following the instructions I change ports.conf And changed the 000-default.conf and ...
0
votes
0answers
13 views

Apache2 mod_evasive for only one virtual host

I'm testing a scenario where, I'm hosting two-site on same machine with help of apache web server. I'm looking to enable mod_evasive for only one site. I don't see any way to get it working. Following ...
0
votes
0answers
11 views

Apache2 mod_proxy with external 303 redirect

I have a small server applet being hosted externally through apache2's mod_proxy. The internal applet is hosting through port 8080. When I query the path internally: Query: http://localhost:8080/...
0
votes
0answers
24 views

Modsecurity…Host header is a numeric IP address Cannot serve directory no matching directoryindex

my system is Debian 9 Apache2 php-fpm i am experiencing an error with one of the websites on my webserver. I have tried adding an index.html file into the public_html directory (and disabling ...
2
votes
1answer
37 views

Apache incorrectly resolves requests with paths starting with /index.php/

In reviewing access logs I've noticed the below automated vulnerability scan for which Apache is returning a 200 status: POST /index.php/api/Uploadify/preview HTTP/1.1 There's isn't a rewrite rule ...
-2
votes
1answer
32 views

My website got defaced, how to find possible vulnerability? [duplicate]

Recently my internal company site got defaced, is it self hosted site on a VPS, I suspect it has something to do with outdated program we use (e. g. php-5.5.9 and apache 2.4), and also it ran off ...
0
votes
1answer
15 views

How to enable HTTPS / Secure access in Apache2 mod_userdir?

I would like to enable users of a test server to be able to host content and access them through HTTPS. However, I'm not going to allow everyone to write to the /var/www. How can I enable the content ...
0
votes
0answers
13 views

very slow loading time of WebDAV directory on apache2 webserver

I run a Rock64 single board computer as a webserver that I intend to use mainly as a WebDav based "cloud storage". Armbian is the OS used. The webserver is accessed only via SSL (LetsEncrypt ...
0
votes
1answer
40 views

Apache2: Invalid command 'LockFile'

My Apache2 will not work, and when I try to run apache2 --version or any other apache command, it errors out with the following message: AH00526: Syntax error on line 89 of /etc/apache2/apache2.conf: ...
1
vote
0answers
100 views

apache2.service: Failed with result 'exit-code'

I was trying to configure hosting 2 websites on my EC2 instance using VirtualHosts (Apache2). After setting the two VirtualHosts, I'm unable to restart the apache2 service. When I try to do that, I ...
0
votes
1answer
81 views

Installing CORS on Ubuntu 18.0.4 LTS

I want to install/use CORS on my Ubuntu server 18.0.4 LTS for the Wordpress websites that I am hosting. Normally I just add the line in the .htaccess but that doesn't seem to work anymore. Any ...
1
vote
1answer
36 views

Serve website from different directory based on URL string parameter

I would like to learn if I can serve the website from 2 different versions according to URL string parameters. Example: I have two installs on my server: example.com/website-1/ and example.com/...
-2
votes
2answers
35 views

How to redirect multiple domain to same ip but different port?

I wan to install many Apache with php servers in the same virtual machine running in different ports because I want to host N number of different websites into the same virtual machine to avoid ...
0
votes
0answers
19 views

How to configure a standalone nginx reverse proxy server to handle SSL traffic to separte machines running wordpress on apache?

How do I create a secure connection to my apache 2 websites? revProxy server xyz.com.conf # Redirect HTTP requests to HTTPS server { listen 80; server_name xyz.com www.xyz.com; return ...
0
votes
1answer
22 views

What components of a url are rewritten with apache mod_proxy in a Location tag?

<Location /partA> ProxyPass https://example.com/partB ProxyPassReverse https://example.com/partB </Location> What URLs are called on the remote server? http://example.net/testA/...
0
votes
1answer
26 views

How would i go about creating a server that can read/write all files on the host hdd?

I work in the media department of a large ministry group. We frequently travel and produce TBs of data/files every quarter. Due to the high amount of Digital Media produced, most cloud-based storage ...
-3
votes
0answers
72 views

Apache Configuration

I have installed Apache on Ubuntu 20.04. when i run the command: sudo apache2 --version After password the output is: [Thu May 07 08:30:12.442696 2020] [core:warn] [pid 24808] AH00111: Config ...
0
votes
0answers
29 views

Debian9, apache2.4.25, php7.3-fpm can't enable in google cloud

I am using the Google default wordpress instance. Then install php7.3-fpm. Added following to wordpress.conf. Checked php7.3-fpm service running normal. But the SAPI keep showing Apache 2.0 Handler ...
0
votes
1answer
12 views

Unable to set my own directory, and my own site using apache2 in ubuntu server 18.04

I'm using apache2 in a virtual machine with ubuntu server 18.04, everything is going fine, i can see through my PC the welcome page of apache, the server (the virtual machine) and my PC does ping ...
0
votes
1answer
15 views

Apache seems to redirect to domain name ever when not running

I'll preface this by saying I don't have a lot of experience with Apache. But currently I am running a Node process that's listening on port 8080. However, when I access that port via 'ipaddress:8080'...
0
votes
2answers
27 views

port redirect not working for https apache2

I am trying to configure apache2 on aws lightsail instance. the instance was default setup for aws wordpress + aws linux. I have a node.js server running on port 5000 on this instance. the apache ...
0
votes
1answer
31 views

ProxyPass not working - Apache2

<VirtualHost *:80> ServerAdmin callumokane123@gmail.com ServerName server.maniabots.xyz ProxyPreserveHost On ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ </...
0
votes
1answer
29 views

What is the Apache Tomcat equivalent of virtualhost of Apache httpd?

In Apache httpd, if I want to link a web application with a domain name I create a virtualhost. In Apache Tomcat, if I want to link a web application, is there a equivalent method?
0
votes
0answers
7 views

Icon missing with apache2 directory listing when accessed through haproxy

I am running a test apache2 server port 8989. Icons are showing properly when I access through http://<server-ip>:8989, but when accessed through haproxy (with hppts) https://example.com/logs ...
0
votes
0answers
214 views

Configuring Apache for django project

im currently trying to deploy my django project to a web server hosted by a RHEL-8 VM. Im trying to set up the VM to utilize HTTPD (apache). However, i can't seem to get the Virtual Host configuration ...
0
votes
0answers
51 views

Firewalld blocking port 22:SSH

im currently trying to deploy my django app to a web server hosted by a RHEL-8 virtual machine. In doing so i am attempting to use HTTPD (apache). As such, i believe i have to utilize firewalld to ...
0
votes
0answers
33 views

Apache2 Reverse Proxy is now redirecting but not proxying on Ubuntu Server?

I am running Apache2 on Ubuntu Server 19.10. I have a couple of sites that are reverse proxied and have been working forever, but suddenly my reverse proxy for my airsonic server stopped working. ...
0
votes
2answers
22 views

Are images cached or not?

I'm a bit perplexed on debugging of caching circumstances in the landscape of Apache (webserver) and Nginx (reverse proxy): I'm trying to get into knowledge, whether images are properly cached or not....
0
votes
1answer
18 views

HTTPD port 80 not working after install apache tomcat

I am using AWS EC2 and Centos. Before I installed apache tomacat 9, I still able to access my website in port 80, or at least I can access my ip address in browser with welcome page. But after ...
1
vote
2answers
90 views

Handling both 301 redirects and internal rewriting in .htaccess

I want to do three things on my website: Redirect users with a 301 to the HTTPS version of the site when they access the HTTP version Redirect users with a 301 to the "no-www" version of the site ...
0
votes
1answer
15 views

Ubuntu 14 Virtual host file not working with IP (e.g. 123.123.123.123/supervisor2)

I have a virtual host file /etc/apache2/sites-available/supervisor2.conf: <VirtualHost *:80> ServerAdmin myemail@test.com ServerName ??? DocumentRoot /var/www/supervisor/public_html <...

1
2 3 4 5
24