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
0
votes
0 answers

Apache vhost doesn't work

What is wrong with this? The .conf file is added via puppet in /etc/apcahe2/sites-enabled but it doesn't get enabled and i cannot open the link abc.xyz-software.com/apis/1 ....it throws 404 error. ServerAdmin …
sameer
  • 19
  • 3
0
votes
0 answers

Apache is trying to include query string in file path

I'm seeing some errors from apache2 that look like: (36)File name too long: [client ] AH00036: access to /short/path?really=long&query=string failed (filesystem path '/srv/my-site/short/path?really=long&query=string') Why is apache…
Thayne
  • 226
  • 1
  • 7
0
votes
0 answers

How i can create spdy using express js and apache2?

I am creating express http2 server using sdpy? I created on 8000 Port. How can I configure on domain on apache2?
0
votes
0 answers

unable to load files in /var/www on localhost

I don't know why, but until recently, I could load files located in /var/www/ by typing the folder name in my browser, and I could load files located in /var/www/html by using localhost/<> Now, the files in /var/www/html still load, but the ones in…
dsb27
  • 1
  • 1
0
votes
0 answers

create a virtual host with name

I have to create api.conf in /etc/apache2/sites-available dir in a server(xyz02.software.com). The apache config is managed via apache module(apache::vhost) in role::script..so basically it is ///modules/role/manifest/script.pp......
sameer
  • 19
  • 3
0
votes
1 answer

Way to save apache losgs with IP Info

i use this command to live see apache logs: sudo tail -f /var/log/apache2/access.log I use a Ubuntu 18 VPS wich i have root access. this logs are also saved to the access.log file true? (because when i search some string in the live mode i find some…
Diego
  • 1
  • 2
0
votes
0 answers

Zabbix apache template doesn't work only for the number of processes

I use the apache template for a server. It seems to work fine, In the dashboard I can find all the informations. But there is one thing that doesn't work, it's the number of processes. So it trigger Apache: Process is not running. In the…
0
votes
0 answers

Apache2 won't start after switching to using wildcard certs

I am having some trouble updating an apache2 site to use a wildcard cert. It's for a Learning Management System called Moodle which uses PHP and mysql. I started by changing the ssl.conf file to point to the new wild card certs Apache2 won't start…
0
votes
1 answer

modsecurity wont start with an apache server

I have a Debian server where apache2 is running. I want to use modsecurity for throttling. apache2 info $ apache2ctl -v Server version: Apache/2.4.29 (Debian) Server built: 2018-01-14T11:01:58 I installed libapache2-mod-security2 with sudo apt…
Hussain Nagri
  • 181
  • 1
  • 9
0
votes
0 answers

how to redirect user to the index page , if they try to access browse file from directory browsing

I want to restrict user who try to browse the list of page through directory browsing , currently I am able to redirect user to index page if he try to access "xyz.leadangel.com/assets" but I am not able to redirect to index page if he try's to…
0
votes
0 answers

Apache web server - How to serve custom error page when 401 returned from proxypass site

So I have an apache web server with the below rule: ProxyPass /auth https://my-auth-server.azurewebsites.com/auth keepalive=On ProxyPassReverse /auth …
0
votes
0 answers

Apache2 not working with PHP

I have Apache2 running on a Debian 11 box (x64). It was installed with an Openmediavault ISO, with nginx and PHP 7.4 installed already (for the web UI) I try to install the PHP connector for apache2 (libapache2-mod-php7.4), and it installs fine, but…
0
votes
1 answer

apache2 with PHP-FPM truncating error_log messages

I have an apache2 server configured to serve multiple websites with php-fpm. Each websites has a custom error_log file ErrorLog "/var/log/apache2/error_log-example.com" using the following php code
Luca Ricci
  • 65
  • 1
  • 6
0
votes
1 answer

What should be in mysql replication MASTER_HOST='source_host_name'

I am trying to setup replication across two servers on AWS. I am following the documentation and I am up to this point. https://dev.mysql.com/doc/mysql-replication-excerpt/5.7/en/replication-howto-slaveinit.html This is given. mysql> CHANGE MASTER…
user1794918
  • 103
  • 5
0
votes
0 answers

IF-Directive in Apache Config that calls bash script

How can I make an If-Directive in apache config that is executed in case of an external bash script returning true, like this example: Require all granted
Lokomotywa
  • 131
  • 5