Skip to main content

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
1 answer
476 views

htaccess rewrite rule to a specific PHP page doesn't work

I have the following code in my .htaccess file, placed in the root of my Ubuntu 22.04 instance: Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{...
Frank Eno's user avatar
  • 101
0 votes
1 answer
598 views

PHP Fatal Error: Cannot open /dev/urandom: No such file or directory when calling session_start() with manually built PHP

Problem I built PHP8.4 manually in Ubuntu 14.04 since the OS is out of support with no ppa package available. I tested for phpinfo() web page showed correct information while adding session_start() at ...
NeNe's user avatar
  • 3
0 votes
0 answers
116 views

Can't add file extension restriction on webdav server (apache)

I have configured a webdav server on Ubuntu 22.04 using apache. Here is my configuration file in the sites-enabled folder, and it works like that: <IfModule mod_ssl.c> <VirtualHost *:443> ...
sdrdis's user avatar
  • 1
0 votes
1 answer
171 views

Identify SSL certificate type for apache configuration

I have SSL certificate files: Root2023.crt t1.crt t1.pem t1.pk8 on my apache How can I determine which of these files should be used for SSLCertificateFile, SSLCertificateKeyFile, and ...
Mohammad Fanni's user avatar
0 votes
0 answers
117 views

Nginx reverse proxy to an apache ssl enabled site

I have a very similar question as posted here Use Nginx proxy pass (reverse proxy) to serve an Apache hosted site with SSL Server 1 - mail server with nginx and it own SSL cert ( mail.mydomain.com) ...
chewiesw's user avatar
0 votes
0 answers
47 views

Subdomain is not catched by domain virtual host

Using apache2 on Ubuntu server 22.04. 0-default.conf <VirtualHost *:80> //ServerName and ServerAlias undefined </VirtualHost> 0-default-ssl.conf <IfModule mod_ssl.c> <...
yaugenka's user avatar
  • 115
2 votes
1 answer
481 views

How should I modify file permissions to accomodate Wordpress

I have been successfully using the method described here: Maintained by a Single User and it has been working well for me. This is my script for all my websites: sudo chown -R WebAdmin /var/www/...
Chiwda's user avatar
  • 125
0 votes
1 answer
38 views

apache2 mod_rewrite rule error (although i think i did everything correctly, and have exhausted google's searchresults)

this rewrite rule is not hitting it's mark :( RewriteCond %{REQUEST_METHOD} ^(GET)$ RewriteRule ^/wiki-search/(.+)$ NicerAppWebOS/index.php?app-wikipedia.org-search=$1 [L,END,PT,DPI] apache ...
Rene Veerman's user avatar
1 vote
1 answer
203 views

Use relative parent directory links in Apache httpd mod_autoindex

With Apache httpd mod_autoindex, the generated index pages use relative (without the leading slash) links for individual entries, for example: <a href="failure/">failure/</a> ...
Richlv's user avatar
  • 2,383
0 votes
1 answer
66 views

Apache 320 redirect loop with correct htaccess and virtualhost conf

I am web designer and I manage a VPS Server. Server is LAMP Ubuntu 18 apache2 PHP 7.4 root index.html This page isn’t working test.com redirected you too many times. Try clearing your cookies. ...
SACHIN HD'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
0 votes
1 answer
463 views

How enable modsecurity only one site? in edit .htaccess?

nano /etc/apache2/mods-enabled/security2.conf <IfModule security2_module> SecDataDir /var/cache/modsecurity IncludeOptional /etc/modsecurity/*.conf IncludeOptional /usr/...
dr.ipkins's user avatar
0 votes
0 answers
74 views

Website not loading. No access logs created

I have a server running apache2 on Ubuntu 20.04 and Virtualmin software. For one of these domains, the site just stops loading and timeout occurs in the browser. When this happens there are no access ...
Whip's user avatar
  • 258
0 votes
2 answers
101 views

Why is my browser displaying the Content-Type line?

Following what's described here --- https://httpd.apache.org/docs/2.4/howto/cgi.html --- I've created a tiny Perl document: #!/usr/bin/perl print "Content-Type: text/html; charset=utf-8\n\n";...
John's user avatar
  • 103
0 votes
1 answer
308 views

Cannot Start Apache2 - httpd bound to port 80

I have a fresh install of Ubuntu Server 22.04, on which I installed apache2 via apt-get install After the installation I got the following error whenever I tried to start Apache2: (98)Address already ...
Bushkin's user avatar
0 votes
1 answer
652 views

Issue with Web Server running PHP thru Reverse Proxy

I'm using an NGINX reverse proxy, with wild card certs installed on the reverse proxy. Routing the NGINX reverse proxy traffic to standard web servers that are running Apache2 and NGINX Web services ...
Surfingjoe's user avatar
0 votes
1 answer
393 views

How to permanentely change Apache Timeout by using include files?

If I edit Timeout in /etc/apache2/conf/httpd.conf then it works for awhile but eventually gets overwritten. Now, I know it says to use the include files like pre_main_global.conf. So, do I just put ...
Ryan's user avatar
  • 153
2 votes
0 answers
95 views

Apache2 cannot get authentication to work

Running: Apache 2.4.41 on Ubuntu 20.04 I am trying to force authentication on /var/www/html but I think I have tried every combination of options possible but every single time it lets people in with ...
Serge Bigras'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
0 answers
60 views

Multiple site on apache 2

i have a apache 2 installed on my ubuntu 22.04 server, the server the server was working with multiple sites configured with http://ip_address/site_name and every site was in /var/www/html/site_name . ...
Rosario Iameo's user avatar
1 vote
1 answer
165 views

Edit .htaccess file to make file accessible

I was trying to make a WordPress plugin work, when I found, after hours of debugging, trial, errors and praying ancient Greek gods, that the plugin did not work because it was impossible for the ...
Life after Guest's user avatar
0 votes
0 answers
265 views

SVN only fails to commit new files that have been svn:copied with RA layer request failed error, changes and additions work fine

Whenever I try to commit a new file that has been created using svn:copy I get the following error: RA layer request failed Commit failed (details follow): Unexpected HTTP status 502 'Bad Gateway' on '...
Wholesome PJ's user avatar
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
0 answers
149 views

Can I stop Apache2 server with Caddy in docker container

I'm running a container with Caddy. My website is properly working. I can access it. The problem is that whenever I visit any page on my website - I can see apache2 that takes a lot of CPU (in top). ...
Marek's user avatar
  • 101
0 votes
0 answers
51 views

Show content of loaded sites-available in apache2 under ubuntu 18

I accidentally deleted a .conf in /etc/apache2/sites-available. Is there a way to retrieve the content of it? When I type a2query -s, I see that the deleted .conf is still loaded, since I did not ...
Selphiron's user avatar
  • 101
2 votes
0 answers
304 views

Apache creates ~3x as many threads as MaxRequestWorkers

I'm hosting a non-profit community wiki for the upcoming video game Baldur's Gate 3. Since it looks like the game is likely to have millions of players, we started worrying about server capacity. I'm ...
TaylanKammer's user avatar
0 votes
0 answers
53 views

Apache with vhosts: Newly created site opens other site

I have a server with three vhosts, the default (domain.com), site1.com and site2.com. The server is running Ubuntu 22.04 LTS with Apache2. Until yesterday, this server only served the default domain, ...
Emily's user avatar
  • 1
0 votes
0 answers
390 views

Apache URL rewrite to hide port numbers of web servers

I have an Ubuntu server running Gitea and Jenkins on ports 3000 and 4000 respectively. I want to be able to access them through a user friendly url like http://myhost/gitea and http://myhost/jenkins. ...
shane.singwa's user avatar
0 votes
0 answers
20 views

DNS/Domain not working [duplicate]

I have domain, pointed to my VPS. I made VH in apache to serve simple index.htm file to check if everything works fine. Unfortunatelly something is wrong because page is not found(http://zoofi.me). ...
michal's user avatar
  • 101
0 votes
0 answers
60 views

Web server returning high number of 502 and 504s

We have a web application (LAMP stack) with traefik as a reverse proxy that is suddenly giving HTTP 502 and 504 errors on >50% of requests, both for static files and php scripts. In the traefik ...
bkane521's user avatar
  • 101
2 votes
1 answer
368 views

.htaccess return error if no RewriteRule meets the request

I'm trying my hands on writing a simple REST API and am currently trying to properly configure my .htaccess file. What I'd like to achieve is the following: have RewriteRules to direct requests ...
traxx2012's user avatar
  • 123
0 votes
1 answer
332 views

Remote MySQL server returning: MySQL server has gone away / Error while sending QUERY packet

I have 2 servers (both running Ubuntu 12.04) APP server running apache2, PHP7.2 and a CakePHP 2.0 APP DATABASE server running mysql 5.7 When I'am trying to insert into the database a big blob (...
updevs's user avatar
  • 1
0 votes
1 answer
123 views

Redirect Error website on VPS Ubuntu "www version" redirecting to "apache default page"

Hi I am a web designer and have recently starting maintaining a VPS server I am using a Lamp VPS server running ubuntu 18 with multiple PHP websites have edited virtual host and htaccess multiple ...
SACHIN HD's user avatar
0 votes
2 answers
362 views

telnet to port 80 (nginx), with forward to apache2 at port 8080, fails with 'connection closed by foreign host' and no explanations seemingly anywhere

i'm running an Kubuntu 22.04 server, and want to shuttle LAN-only traffic from port 80, served as far as i can tell by nginx, to port 8080 served by apache2 (for PHP purposes). but i'm getting this &...
Rene Veerman's user avatar
0 votes
0 answers
243 views

How to setup https website when I have own CA

I have very interesting question for me... I'm runnig webserver on linux machine (debian 10) with apache. In the same domain I have Windows Server on which are my DNS server and Certificate authority. ...
Dave's user avatar
  • 35
-2 votes
1 answer
548 views

Upgrade SMTP Server on Ubuntu Linux 18.04 to support TLS 1.2

Client has an intranet hosted with Apache on Ubuntu 18.04. When I update an employees information through it, an email is sent, but it fails showing the following error: (SMTP Error: 421 4.7.66 TLS 1....
Nico Nico Pizza's user avatar
0 votes
1 answer
43 views

RApache get Query String from executing URL - howto?

I would like to get the query string from the executing URL into my R. I've installed and configured R Apache. Everything works to this extend. My R code so far is: query_string <- Sys.getenv("...
Simon Giesen's user avatar
0 votes
1 answer
78 views

R Apache Error: package 'rJava' could not be loaded

I sucessfully installed RApache on my Debian 11 server. The following R script runs flawlessly when being executed via URL/Apache: y = rnorm(100) print(y) Sadly, another script with rJava/RJDBC ...
Simon Giesen's user avatar
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
0 votes
0 answers
76 views

DNS server bind9 + apache2 on Ubuntu Server VM + localhost problems connectivity

Hello guys :) i'm trying to resolve some problems with my DNS server + apache2 and local machine. I've got Ubuntu server on VirtualBox with NAT network adapter. I tried to create DNS server for my ...
Fenh Rir's user avatar
0 votes
1 answer
37 views

Apache - ProxyPass serve port only for one server name

I have a react app that listening to localhost:3939 Then, I configured a Virtualhost like this to proxy pass the port 3939 on https://test.example.com: <IfModule mod_ssl.c> <VirtualHost *:443&...
dcr31000's user avatar
0 votes
1 answer
382 views

Apache using up all the memory

My site (which as running fine until yesterday - CPU was at 2%, memory at 50%) keeps maxing out the resources - CPU and Memory at 100% and "load" and Disc IO very high. the site is a php (...
Will's user avatar
  • 131
0 votes
1 answer
289 views

Moving from Apache2 to NGINX configuration

I have been trying to get my website up after moving from apache2 to nginx on my AWS Ubuntu 20.04 server. I have translated the relevant files from apache2 over to my nginx configuration, however I ...
jabroni's user avatar
  • 103
0 votes
0 answers
666 views

apache mod_wsgi error, randomly: Unable to connect to WSGI daemon process

Recently, our server shut down out of nowhere, this what Apache logs show up: [wsgi:error] [pid 8837:tid 140646648096512] (2)No such file or directory: [client] mod_wsgi (pid=8837): Unable to connect ...
Jose Luis Arrioja's user avatar
0 votes
1 answer
87 views

Require ip in apache2 works for index.html but not

I am using apache 2.4.56 and my site is hosted on Google Cloud Compute. "Require ip ip-number" works for /var/www/html/index.html like mysite.com but it doesn't work for mysite.com/cgi-bin/...
Marcos Camargo's user avatar
0 votes
1 answer
260 views

Change the script path in an Apache proxy handler

I'm developing my application with 2 containers: apache and php-fpm. Apache serves requests, and delegates PHP execution to the php-fpm container in its vhost: <FilesMatch .php$> ...
amacrobert's user avatar
1 vote
0 answers
161 views

Apache Rewrite Based on Query String

I'm trying to detect the presence of a particular name/value pair in the query string and, if it exists, do a thing. I'm trying to do this in a conf file that's stored in conf-available/ and after ...
Rob Wilkerson's user avatar
1 vote
1 answer
224 views

Find what paths are required for open_basedir?

We have a server (running PHP-FPM 7.4 on Apache) that hosts various scripts, frameworks and applications like DokuWiki. It's grown to a pretty complex beast. We would like to apply an open_basedir ...
xebeche's user avatar
  • 363
0 votes
0 answers
177 views

Reverse Proxy on different Server

Hi i’m searching for a way to reverse proxy a Website with Websocket with apache2 but the Website and the Reverse Proxy are running on different Isolated servers. I’ve tried the normal way to ...
T0b1a5's user avatar
  • 1
2 votes
3 answers
1k views

Apache on debian don't redirect http to https correctly

Debian 11 config file: /etc/apache2/sites-enabled/000-default.conf <VirtualHost *:80> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} ...
Ishayahu's user avatar
  • 187

1 2
3
4 5
36