Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Assa Yeroslaviz's user avatar
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 ...
velici alex's user avatar
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"&...
sysad noob's user avatar
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 ...
Mahesh's user avatar
  • 101
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 ...
xhighway999's user avatar
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 ...
deconstruct's user avatar
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 ...
Lumi's user avatar
  • 199
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 ...
Rex_C's user avatar
  • 101
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 ...
fsk5304's user avatar
  • 101
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>...
DrDino's user avatar
  • 11
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 "...
Prashant Pawar's user avatar
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 ...
overrrflowww's user avatar
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 (...
SecurityWho's user avatar
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-...
8bitdefault's user avatar
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!"....
Black's user avatar
  • 491
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 ...
Mohammed Shannaq's user avatar
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 ...
Adam's user avatar
  • 101
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 ...
Paflow's user avatar
  • 187
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 /....
anonymus1994.1's user avatar
-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/...
Sunny Chaudhari's user avatar
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 ...
5a5a8's user avatar
  • 1
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/...
Nico Nico Pizza's user avatar
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. ...
Amir Sabeghi's user avatar
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 ...
zab nicola's user avatar
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....
Guidable's user avatar
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 ...
NimChimpsky's user avatar
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 </...
Pietro Battiston's user avatar
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/ </...
Callum OKane's user avatar
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 ...
Praveen's user avatar
  • 103
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 ...
Praveen's user avatar
  • 103
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 ...
Elmond's user avatar
  • 5
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 ...
Roy Granit's user avatar
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 / ...
automatix's user avatar
  • 702
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 ...
mgb's user avatar
  • 56
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 ...
OHithere's user avatar
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....
Andy's user avatar
  • 1
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/...
Roger 71's user avatar
  • 151
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....
technical_difficulty's user avatar
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 ...
Black's user avatar
  • 491
-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 ...
Torreh's user avatar
  • 1
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 ...
albert's user avatar
  • 121
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 ...
CodingDude's user avatar
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.
dlinx90's user avatar
  • 143
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" ...
siavash's user avatar
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) ...
Nadav Tasher's user avatar
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 ...
doetoe's user avatar
  • 111
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 ...
scott80109's user avatar
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 ...
CodeIt's user avatar
  • 113
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 *...
mahmood's user avatar
  • 1,082
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 ...
mao's user avatar
  • 101