Questions tagged [apache-httpd]

Use this tag for questions related to the Apache HTTP server (any version, but make sure to provide Apache version numbers in the question unless not relevant). Non-apache web server-related questions should use the tag: webserver.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

How to allow only user-agent in apache2 location?

On an apache2 server config, I want a location to only allow certain user agent: <Location /mypath> Require expr %{HTTP_USER_AGENT} != 'BadBot' </Location> How can I change this ...
0
votes
0answers
14 views

user and group not getting set correctly for auto generated files

I am hosting a Magento 2 (onlineshop software) project on my dev machine. The user and group are set to this: user -> company group -> www-data In Magento 2 some files are getting auto ...
0
votes
1answer
13 views

Restrict access to web site by its IP address

When I go to my site www.mysite.com by port 80/tcp, it redirects me to https 443/tcp. It is ok. But when I go to link https://xx.xx.xx.xx (by its ip address), I can easily access it and it gives me ...
0
votes
0answers
11 views

openSuse - change PHP cli version

I have built PHP 7.3.27 from source like this: ./configure --with-config-file-path=/etc/php7/cli \ --with-config-file-scan-dir=/etc/php7/cli \ --with-openssl \ --with-bz2 \ --with-zlib \ --with-...
2
votes
0answers
27 views

No space left on device: AH00023: Couldn't create the ssl-cache mutex

Earlier today, we faced an issue when the Apache (MPM, installed over CentOs on AWS Cloud) server went down and we were unable to restart the same. The error which we got on the error log was: No ...
-1
votes
2answers
129 views

How to secure/harden apache2 on Debian? [closed]

I recently found miner in my Debian 10 server by figuring out what was hogging whole resources (CPU and memory) with htop command. Apparently all malicious processes were running under www-data user. ...
0
votes
1answer
21 views

Is there a distro specific to the LAMP stack?

I tried real hard to get LAMP stack working on my pop_os home pc, but could not get it working. Is there a distro in existence with the LAMP stack preinstalled which I can just add WordPress on top of....
0
votes
0answers
15 views

How check apache & php-fpm config is appropriate (not too high or too low)

I will have an event with 3k users on an app (php base). I launch several instances in the cloud and install LAMP on it.[to make load test and choose on for the event] On Ubuntu 18 I enable mpm_event ...
3
votes
1answer
40 views

Not consuming STDIN causes curl error

I have set up a post-recieve hook for Github. It will issue a POST-Request to an Apache cgi-script, which then is supposed to download the changes to the repo into the locally cloned bare repository. ...
0
votes
2answers
33 views

What is the best and the efficient way of tracking whether Apache web server is up and running?

When I wanted to check whether the Apache web server is up and running on the linux server(CentOS), I came to two solutions by tracking through the ps command and ss command. Following I've tried: ps -...
0
votes
2answers
31 views

Apache+Wordpress: How to add http://localhost:3002 page as https://mydomain.com/anotherpage

I have single Wordpress webpage on LAMP server. It's running perfectly. I am very newbie to networking and www, I don't want to break my page which serves as eCommerce and brings me income. My webpage ...
0
votes
1answer
30 views

ssl with both apache and nginx

I am running nginx for a static website and an email server, and apache2 for a nextcloud instance on a remote debian 10 server. I want to use ssl for both. I have set up apache2 to listen on port 8443 ...
0
votes
0answers
24 views

Apache2: Hosting Multiple Sites (Ubuntu Server)

I am new working with system.d and services on ubuntu/debian. I'm trying to serve multiple sites on the same Apache2 (I am note sure if I should have 3 apache2 folders for the each service). The ...
0
votes
0answers
16 views

Mattermost Websocket handshake fails when using apache as proxy

I'm not making any progress with my Mattermost installation on my server. I've installed everything without any problems. After that I've enabled the apache mod proxy_wstunnel and added the following ...
0
votes
1answer
37 views

Group Apache log rows by URLs with sed or awk?

Given a file /var/log/apache2/other_vhosts_access.log like this: example.com:443 1.1.1.1 - - [25/Jan/2021:12:00:00 +0000] "GET /abc/def/ghi?token=jklm12 HTTP/1.1" 200 1000 "-" &...
0
votes
1answer
28 views

Why does “apachectl restart” work but “apachectl start” does not?

I'm using Ubuntu 18.04. I seem to be unable to restart Apache2 using "sudo apachectl start". I see this ~$ sudo apachectl start Invoking 'systemctl start apache2'. Use 'systemctl status ...
0
votes
0answers
10 views

Use multiple PHP-FPM versions using FastCGI on same Debian/Apache server

I would like to use multiple PHP-FPM versions using FastCGI on same Debian/Apache server. Using: Debian v9.12, Apache v2.4.25, php5.6-fpm, php7.4-fpm, libapache2-mod-fcgid v1:2.3.9-1+b1, libapache2-...
0
votes
0answers
8 views

Apache2 Proxy kills request after x Minutes

I've been trying to fix this error for hours and so far just failed. The following case I am trying to solve: I have 2 application servers which are accessed by a third server. All servers are running ...
0
votes
1answer
439 views

Certbot: Your system is not supported by certbot-auto anymore. Certbot will no longer receive updates

How do I manually update the certificates that Certbot would normally update? I did not change anything in my system so I am assuming it is because I have CentOS 6. I also have Apache. How do I update ...
1
vote
1answer
27 views

ssh reverse tunnelling access local web server from internet

Hi have local web server running on the locahost, localhost:8765 and I need to access this server from outside network. Also I have public server running ssh server and Apache server both. I have ...
0
votes
0answers
25 views

Awstats on Debian 10 - too small number of visits - options to fix it

I am using Awstats since many years and before my upgrade on Debian 10, everything was working fine. I have a special configuration with an Apache2 server behind a Zope framework. I apply rewrite ...
0
votes
1answer
34 views

Ondrej repo on Ubuntu 18.04

I'm following a guide for loading PHP 7.4 on Ubuntu 18.04 from the Ondrej Surý repo and noticed the CAVEAT about apache2 and nginx from the 1. If you are using php-gearman, you need to add ppa:ondrej/...
1
vote
1answer
21 views

I can't deactivate wired ens33 on nmtui

I tried to Deactivate the cable ens33 in nmtui, and I get an error message NetworkManager TUI "Could not activate connection: Connection 'ens33' is not available on device ens33 because device is ...
0
votes
0answers
14 views

Nodejs Apache Reverse Proxy HTTPS

I successfully manage to reverse proxy my Node app through a reverse proxy with the below customizations <VirtualHost 190.200.180.50:3333> ServerName messenger.example.com ProxyPass / http://...
0
votes
2answers
20 views

Apache vhost local request

I got 2 sites configured via apache vhost like: <VirtualHost *:443> DocumentRoot /var/www/site1 ServerName www.site1.com ... <VirtualHost *:443> DocumentRoot /var/www/...
0
votes
1answer
157 views

How to add X-Forwarded-for header in reverse proxy with SSL passthrough

Setup as follows: proxy server (RHEL8 apache 2.4) in DMZ contains multiple vhosts each vhost acts as a reverse proxy to a web server in the LAN connections from the proxy to the backend web server ...
0
votes
0answers
26 views

all urls show Not Found The requested URL was not found on this server

I use Unbuntu 16.0.4 in AWS EC2. however, after the deployment of my website, the web page shows " Not Found The requested URL was not found on this server." Apache/2.4.29 (Ubuntu) Server at ...
1
vote
1answer
54 views

How to enable XBitHack on Apache2 web server (Debian)?

I am trying to enable XBitHack on my Apache2 web server running on Debian 10. This is what I put in /etc/apache2/apache2.conf: <Directory /srv/> Options Indexes FollowSymLinks ...
1
vote
0answers
14 views

monitor Apache current downloaing files

I'm using Apache to allow users of my application to download required updates. I want to know are there any methods to understand which files are currently downloading and which IP is downloading ...
-1
votes
1answer
31 views

Copy paste file from home to public_html

Anyway to make this go away? I have asked in freenode #linux but I got roasted with such Karen comments as "Why on God's name earth would you do that?". So yeah I just don't know. Been ...
0
votes
1answer
261 views

Error: Package: 1:npm-3.10.10-1.6.17.1.1.el7.x86_64

I got this what looks like a node problem when I try to update CentOS7. Could be kernel, this is when I get confused. [root@orcacomputers orca]# yum install npm Package 1:npm-3.10.10-1.6.17.1.1.el7....
0
votes
0answers
17 views

php extensions disappeared?

This is a weird one. I'm running a lamp setup on centos 7 with php 5.4 and mysql 8. Last night I was developing perfectly fine. When I woke up this morning I got errors of the database driver ...
0
votes
2answers
22 views

Apache not showing in /etc/services

I've installed apache2 on a server running Ubuntu 20.04.1 LTS and it's current status is running. Shouldn't I be able to see that service also in the /etc/services file?
0
votes
0answers
23 views

Apache reverse proxy not working

I have installed on a Debian 10 vm utserver (utorrent server for linux), and on the host machine I have an apache instance that, through a reverse proxy, allows to access the utserver webapp through ...
0
votes
0answers
304 views

“Stopping User Manager for UID” in syslog

Context: server Ubuntu 20.04.1, kernel 5.4.0-53-generic Multiple times per day, the following error happens (syslog): Dec 2 18:02:33 my-host systemd[1]: Stopping User Manager for UID 1002... Dec 2 ...
0
votes
0answers
13 views

Does Apache2 provide an API to administrate the server?

Is there an API for programmatic configuration of the server? Or is the only method of configuration by way of the configuration files?
0
votes
0answers
58 views

Change ulimit value for a user on a cPanel/WHM machine

I have a dedicated CentOS machine running WHM/cPanel. I have been noticing an app performing bad being hosted on a cPanel account. Most probably due to restrictions setup by the system admins at ...
0
votes
1answer
20 views

Is there a way I can define my env vars in one place instaed of two?

I'm using Ubuntu 18.04. I would like to define some env vars in a single place that are both accessible system-wide (via a shell) and in my Apache-Python application. In /etc/profile, I have defined ...
1
vote
2answers
83 views

URL rewriting for root of website

This is the configuration of my Apache 2.4.37 webserver on Centos 8. File /etc/httpd/conf.d/mysite.conf: <VirtualHost *:80> ServerName mysite.com DocumentRoot "/var/www/html" ...
0
votes
1answer
13 views

Making Changes To A Live HTML File From OfficeLibre Writer On Same Server

I have discussed this issue briefly in ##linux freednode twice over the past few months. Once I got crucified; WHY WOULD YOU DO THIS!? and second conversation I wasn't pleased with the results of ...
1
vote
1answer
38 views

Unable to install libapache2-mod-spamhaus E: Unable to locate package “libapache2-mod-spamhaus” in Ubuntu 18 Apache 2.4.29

Somehow, I'm not able to install Spamhaus module using apt-get and I didn't find any tarball to install it manually. It was working smoothly in Ubuntu 16.04. Is mod_spamhaus not supporting Ubuntu 18 ...
0
votes
0answers
264 views

SSO Kerberos Apache2 “No key table entry found matching” error

I am working on a wordpress page that uses NTLM SSO with LDAP Integration. The problem that I am having is that, for some reasons when you acces the website I am getting a 500 Internal server error ...
0
votes
1answer
34 views

Google Chrome scrolling suddenly stopped on my website

I have a website that was working OK until this weekend. Today I noticed that a number of browsers lost the ability to scroll the content vertically. The only modifications done to the server or the ...
0
votes
1answer
76 views

How to make journalctl show the apache2 error.log?

Specific: I know I can use cat /var/log/apache2/error.log, but journalctl is now the "official" log viewer, so it has to show all logs. I hate using 2 tools for a task that one tool should ...
0
votes
0answers
101 views

htcacheclean with “-A” flag only lists 64 cache entries, where are the rest?

I have a webserver running Apache. It has caching enabled via cache_disk_module. CacheRoot "/var/cache/httpd/mod_cache" CacheDirLevels 1 CacheDirLength 1 I would like to list ...
0
votes
0answers
50 views

git web backend not allowing me to browse git projects

I am running a git server on CentOS 7. The apache we server is running on port 88 and I am able to clone and update my files through the cli using http on port 88. So the server itself is listening ...
1
vote
1answer
129 views

Apache permission issue with accessing an image (CentOS)

I'm trying to make my website, hosted on my CentOS 8, load up background.png file that is located on the same directory as rest of the website (/var/www/html) but the website refuses to load it and ...
0
votes
1answer
19 views

Why does remotely accessing a file via a web page work with Apache 2.2 but not 2.4 even though I have updated files required by 2.4?

I'm migrating from Apache 2.2 to 2.4 and can no longer access files that are not in document root -- a classic alias problem. I have read many conflicting posts about this and made changes recommended ...
2
votes
1answer
164 views

Upgrading apache2 On Debian 9 After Infection

I recently discovered that my Wordpress blog running on Google Compute Engine has been infected by the Mozi malware and was for a long time part of their botnet (confirmed as I received a warning from ...
0
votes
0answers
30 views

How to have .html files pass through the PHP preprocessor?

I would like to configure an Apache webserver 2.4.37 to hide the fact that it is serving PHP files. For this, I renamed all .php files to .html and inserted the following directive: AddType ...

1
2 3 4 5
33