All Questions
Tagged with apache2 web-server
62
questions
0
votes
1
answer
49
views
I can't log-in to the webserver via LDAP
We using a VM for a web server running with apache2 regulating a specific service. Both SSH-login and logging to the front end were regulated by our LDAP-server. A few weeks ago, some changes were ...
0
votes
0
answers
48
views
-CGI script not getting executed
0
I'm trying to make a simple form where you can introduce you're name and upon hitting the submit button you get redirected to a page where it says "Hello name_that_was_submited!". I did ...
0
votes
0
answers
203
views
proxy causes "Name Error: The domain name does not exist" Apache2
When I activate a proxy by entering the address in /etc/environment, the website I host on my webserver becomes inaccessible with the following error message (snippet):
<div id="content"&...
0
votes
0
answers
43
views
strace restart apache server does not log accept/accept4 syscalls
We are using the following command to gather syscalls for apache server start (run as root):
strace -e trace=open,close,read,write,connect,accept -f -o /home/sacumen/syscalls_start_apache.txt ...
0
votes
2
answers
199
views
Slowdown in Apache with HTTP/2 when Requesting Small Thumbnails (60KB) via Reverse Proxy to HTTP/1.1 Backend
I am currently running an Apache server with HTTP/2 enabled as a reverse proxy for my web application. I have noticed a significant slowdown when requesting a large number of small thumbnails (each ...
0
votes
2
answers
216
views
Apache Httpd: Logging Access for Non-privileged Users
I’m wondering if it is common for Apache HTTPD admins to allow read access or read access to copies of /var/log/httpd/${vhost}_error_log?
I administer an Apache web server for a University CS ...
2
votes
1
answer
1k
views
Apache GZIP for images - any reason?
JPEG, GIF, PNG and WEBP images are already compressed. Is there any reason to serve them up using GZIP compression, regardless of whether or not the client says it may accept GZIP compression?
curl -H ...
0
votes
1
answer
443
views
Getting a timeout error on a newly created Apache2 web server
I created a new Debian 12 web server through Vultr. I have uploaded my simple little website up to the /var/www/html directory and when I try to navigate to the ip address, I get a The connection has ...
0
votes
1
answer
208
views
Apache child processes are launched more than ServerLimit and threads are executed more than ThreadsPerChild
The following version of Apache is used. (MPM : event)
httpd -V
Server version: Apache/2.4.37 (Red Hat Enterprise Linux)
Server built: Jun 15 2022 08:27:14
Server's Module Magic Number: xxxxxxxx:xx
...
1
vote
0
answers
93
views
Apache2: mod_ratelimit only allowing half the speed
I'm trying to limit the file download speed in a directory
I've got the following .htaccess
<IfModule ratelimit_module>
SetOutputFilter RATE_LIMIT
SetEnv rate-limit 4096
</IfModule>...
0
votes
2
answers
333
views
How Can I add Cookie value or Session ID Value in ErrorLogFormat of Apache?
I want to add the 'my_session' cookie value in the Apache error log.
I have added an access log 'LogFormat' as below:
<IfModule mod_ssl.c>
<VirtualHost *:443>
LogFormat "...
0
votes
1
answer
69
views
Can apache return multipe ErrorDocuments for the same response code depending on a header value?
So let's say I have a 403 page but if the request header has a custom value in it - I want to return a different 403 with a bit more information in.
So the normal 403 location may be /error_403 and ...
1
vote
1
answer
110
views
Apache2 - Redirect to external Server for several domains
my goal is to setup a webserver, that redirects http requests to another server.
For example, when an URL/Domain changes.
I want to create an CNAME Record for the old domain to the redirectserver (...
0
votes
1
answer
2k
views
Apache does not start
I am trying to start Apache on my Webserver but I keep getting this error: httpd.service: Failed with result 'protocol'.
Any solution would be appreciated.
Edit: Log Entries
Jun 3@ 63:41:59 racknerd-...
0
votes
1
answer
230
views
403 after pointing A-Record of subdomain to IP of other server
I have two servers X and Y.
Server X:
I have a VHOST for the subdomain test.api.konfigurator.company.de pointing to a directory which simply has a index.html containing the word "it works!"....
0
votes
1
answer
242
views
Installing Apache in different name and different port
If Linux server already has Apache web server running as httpd on port 80 to serve hosted website. and If I want to create a control panel to manage the server so I need to install a web server to ...
0
votes
1
answer
116
views
Apache mod_action producing 404s
I'm trying to setup a custom action handler for certain files in Apache (running on Ubuntu). It looks to me like I have my site config setup correctly for the action handler, but now when ever I ...
1
vote
1
answer
306
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 ...
6
votes
4
answers
5k
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
1
answer
26
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/...
0
votes
0
answers
1k
views
Unable to access apache2 server from any machine except localhost
I have a Magento2 instance set up on a server running Ubuntu 20.04.
When I open a browser from that machine I can access the webpage using any of: magento.local, 127.0.0.1, and 192.168.20.11 (which I ...
0
votes
1
answer
932
views
Apache can't start because httpd is listening on port 80?
Hello serverfault community.
I'm setting up a nextcloud server, but apache is not starting.
When I run systemctl status apache2 I get:
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/...
3
votes
0
answers
667
views
How to give OpenVPN profile files to users via the HTTPS?
I'm using Mikrotik Router as an OpenVPN server and I want to give the profile file to the users with HTTPS URL so they can import the file using URL in OpenVPN application on Android or IOS phones.
...
0
votes
1
answer
77
views
Api request that return virtualHosts list name or ip
Is there a way for send a request to apache web server and it be returned list of all virtualHosts, name or ip address? Can be done it with some api?
I Know that executing apache2ctl -S I get info on ...
0
votes
1
answer
1k
views
apache2 ip redirect conflicting with subdomain redirect
so visiting my website example.com works as intended.
I successfully configured a redirect so that abc.example.com will redirect to example.com/abc.
The config file looks like this abc.example.com....
0
votes
1
answer
28
views
Webserver setup, port forwarding seems to be happening and don't know why [closed]
[me@myserver myDir]# wget http://127.0.0.1
--2020-08-17 10:45:45-- http://127.0.0.1/
Connecting to 172.31.2.21:8080... connected.
Proxy request sent, awaiting response... 200 OK
Why is my request ...
1
vote
0
answers
228
views
Multiple "Location" sections with different handlers aren't combined anymore in apache2 after upgrade
I have a website with the following configuration:
<VirtualHost *:80>
ServerName example.it
<Location />
SetHandler uwsgi-handler
uWSGISocket /var/sitedir/moin.sock
</...
0
votes
1
answer
561
views
ProxyPass not working - Apache2
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName server.maniabots.xyz
ProxyPreserveHost On
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
</...
0
votes
1
answer
3k
views
Where to give index.php properly?
I have /var/www/html/moodle as my website directory. When in mysite.conf the settings are as follows:
DocumentRoot /var/www/html
DirectoryIndex "index.php"
mysite.com gives an Index of/ page since ...
0
votes
2
answers
487
views
Apache not loading homepage
My site www.domainname.com loads apache2 'It works' page instead of the expected home page of moode which is located at /var/www/html/moodle. There is an index file index.php inside moodle directory ...
0
votes
1
answer
15k
views
Solved - 500 Internal Server Error Apache, htaccess redirect
So, when i visit a page that is not existing on the main domain www or not i just get the normal 404 error, however when i visit it on a subdomain like dsfds.test.com i get the error 500 and in the ...
0
votes
2
answers
2k
views
How to terminate backend PHP scripts invoked by Apache webserver?
I'm invoking some PHP backend scripts on Apache webserver that are programmed to run for a few days. The trouble is that I cannot figure out a way to stop these scripts (except restarting the server ...
1
vote
1
answer
301
views
Which user should be the owner of the web root in SLES 12?
I'm setting up a SLES 12 system for running web applications on it. There is already a /srv/www folder and it's owned by root. So I'm going to reassign it to another user.
Is there a good practice / ...
0
votes
2
answers
467
views
How to implement multiple sites using same code on a single apache server?
I have a mod_cgi code "site.py" which is used to serve a website. I'm running several instances of this website on a single apache server, each instance has its own config file.
Currently my apache ...
0
votes
1
answer
163
views
Restrict Access to specific Webpage on Website on a IP-range basis
I'm somewhat of a Website noob myself. We are currently running Wordpress for our Website. Now I am tasked with the following:
A page to search, download and access certain PDF-documents but only for ...
0
votes
1
answer
33
views
Apache2 adheres to www.example.org rules but not example.org (only on HTTP)
I have an odd issue with Apache and example.org.
Both www.example.org and example.org point to the same IP address.
http://example.org -> Apache Default Page
http://www.example.org -> https://www....
9
votes
2
answers
10k
views
Apache Virtual Hosts - Map different paths of the same domain (or IP) to different sites
I'm running Apache/2.4.29 (Ubuntu).
I have only one domain name.
I would like to map different sites to different paths after the domain name.
For example:
mydomain.com/test001 maps to /var/www/...
2
votes
0
answers
842
views
Disable logging of requests from certain IPs apache2
I wan't to stop logging accesses from two of my local IPs, this is what I added to apache2.conf:
...
<VirtualHost *:80>
SetEnvIf Remote_Addr "192.168.0.1" dontlog
SetEnvIf Remote_Addr "192....
0
votes
1
answer
961
views
Can't access phpMyAdmin - I am getting redirected to a vhost
My phpMyAdmin is located at /srv/www/htdocs/phpMyAdmin/.
The IP of the webserver is 192.168.40.40
If I try to access phpMyAdmin like this: http://192.168.40.40/phpMyAdmin then I get redirected to a ...
-2
votes
2
answers
2k
views
Can't access web server when the server's connected to vpn
First things first, I'm new to this and don't fully know what I'm doing.
I have apache2 running on my ras-pi. My router is port forwarded appropriately. When I start the machine and connect to its ...
1
vote
1
answer
2k
views
VirtualHost in Apache delivers wrong page for browser (but not for curl)
I try to host different websites on the same Apache server (Apache 2.4 running on Ubuntu 16.04) by using different virtual hosts. However, when trying to open domain-two.tld the server delivers the ...
0
votes
1
answer
170
views
Apache: Open same .php file with any URN (abc.com/<blabla>) but keep the URL
I basically found a part of my solution here: Apache rewrite rule and keep the url unchanged?
but I want to do more.
I want to open a "template.php" site which comes up on any URN entered. So if I ...
4
votes
1
answer
3k
views
Do httpd/conf.d/* files override httpd.conf
If there is different configuration for the same parameter in both conf/httpd.conf and a /conf.d/* file, which will take precedence?
I can’t find this explicitly stated in any official documentation.
0
votes
0
answers
348
views
Apache Basic authentication using .htaccess file doesnt work on files in directory
I need to protect files within a directory, I used .htaccess file as below and put it in the directory :
AuthType Basic
AuthName "Authentication Required"
AuthUserFile "c:\passwords\.htpasswd"
...
0
votes
1
answer
369
views
Apache And PHP Permissions
I have a server using ubuntu server, with apache2 and php.
I want to setup a directory with a php file, that is visible to the internet,and inside it, a directory that is private, and no one (apache) ...
1
vote
1
answer
82
views
What to do with log entries indicating intended attacks at my server
Since last week I am running a web server (Apache2 on Ubuntu, accessible by IP only) and I reckon that I am most vulnerable now that I don't know well what to pay attention to, so I'll ask the experts ...
0
votes
2
answers
5k
views
Web server showing IP address instead of domain name
I'm running a web server (Apache2) on CentOS 7. I have the following virtual host file. The site is being served as it should. However, the URL is changed in the browser (any browser) from the domain ...
1
vote
1
answer
2k
views
Apache2 - Stop IP redirecting to domain
After setting up SSL and using configuration found on the internet with some modification, I'm not able to access my website using ip address it is always redirecting to my https://example.com.
Here ...
3
votes
1
answer
2k
views
web server not reachable
On a centos-7, I have installed web server but I can not see the test page through web browser.
# yum list httpd*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
*...
0
votes
1
answer
46
views
Recover in use apache2.conf
Someone has overwritten an apache2.conf file by accident and they havent restarted or reloaded the server so the old file is still applied.
Is there any way I can recover the previous file / current ...