Questions tagged [apache2]
Apache (HTTP Server) /əˈpætʃiː/ is a modular cross-platform web server software with a large variety of features(called modules) including SSL, compression, log, proxy and server-side programming language interfaces like Perl, Python, Tcl, and PHP.
apache2
7,963
questions
0
votes
0
answers
8
views
phpfpm and apache configuration not working
i'm recently working on 3-tier architecture on ubuntu virtual machines , 1 desktop and 2 servers,
Their network configuration is set to bridged Adapter in order to communicate with the wifi card ...
1
vote
0
answers
6
views
Cannot push into Mercurial, End of script output before headers: hgweb.cgi, TortoiseHg command returned code 255
I'm having some trouble with Mercurial. It was working fine, and after a few pushes it starts returning error.
I am using TortoiseHg and the log returns
command returned code 255
When I check the log ...
0
votes
0
answers
14
views
Issue with [proxy_fcgi:error] [pid 1539011] (70007)The timeout specified has expired
I need assistance on debugging my apache2 + php8.2-fpm.
based on apache2 error log,
there is a lot of error
[proxy_fcgi:error] [pid 1539011] (70007)The timeout specified has expired: [client xx.xx.xx....
0
votes
0
answers
12
views
Wordpress 6.4.3 installation in subdirectory
I am trying to install wordpress 6.4.3 in custom subdirectory in Ubuntu 20.04 LTS.
Extracted wordpress contents in /srv/www/blog/ folder, and configured database correctly.
Followed the instructions ...
-1
votes
0
answers
20
views
Moving a website from a subdomain to the domain root
I have an httpd service on Amazon EC2 that hosts a Wordpress site on a /wordpress subdirectory (the WordPress is live on https://example.com/wordpress).
Now, I want the Wordpress site to be hosted on ...
0
votes
0
answers
11
views
Odoo live chat not working when using apache reverse proxy
Now here is the situation i have two servers, one is running apache2 and the other is running odoo with nginx, the server that is running odoo doesnot have a public ip, what i am doing is i am using ...
0
votes
0
answers
10
views
apache2 rotatelogs creates log file but its empty when deployed to azure web app
im trying to rotatelogs by day, i've setup the following in apache conf. file:
LogFormat "%h %l %u %t \"%r\" %>s %O" common
CustomLog "|/usr/bin/rotatelogs -l /var/log/...
-3
votes
0
answers
17
views
Error when trying to get SSL Lets Encrypt in Apache Django web app ubuntu oc
I wanted to get the free ssl and so i installed the lets encrypt. I was aware of the errors wirh WSGI module and duplicate and solved them successfully. But when i go to the adress isabelcanvas.ru it ...
0
votes
1
answer
31
views
Docker networking forwarding failed [closed]
I got a problem regarding Docker networking. I've a php (non-framework) and mysql setup with Docker Compose and Docker Desktop. Mysql is using port 3636 and is working perfectly, like: I can reach him ...
1
vote
0
answers
23
views
PHP apache2 - php script cli will write txt file but browser will not
I'm running an Apache2 server (lamp) with PHP8.2 on Raspberry pi5. I have transferred all my code from a previous Pi4b. but installed the lamp server afresh.
I have some simple php script files which ...
0
votes
0
answers
12
views
Issues while deploying flask app using apache2
I need to deploy a flask app using apache2 and wsgi but I can't figure out how to do it. I have seen many tutorials and blogs on how to do it but they all use a demo flask app and I have built my app ...
1
vote
0
answers
8
views
Apache2 redirection results in wrong URL
Two domains are directed to my single ip address. In the LAN, I have two Pi Apache servers. The router redirects port 80 traffic to 192.168.1.16. There, sites-available redirects domain2.com traffic ...
-1
votes
0
answers
22
views
Apache2 default page won't disable, after being disabled [closed]
I'm new on Linux.
I'm working on a project and use Ubuntu Linux and i had to configure a web server. I installed Apache2 and i was able to disable the default page in order to show something specific ...
-1
votes
1
answer
26
views
+100
RewriteRule ^$ https://www.google.com : eventually want to redirect / to /something_else/index.html
I've apt install apache2 for 100% stock ubuntu 22.04 apache2 , run a2enmod rewrite, added these lines to ./sites-available/000-default.conf, and restarted apache2.
LogLevel info ssl:warn rewrite:...
0
votes
0
answers
12
views
Running A ReactJS App in a subfolder under root creates 404 errors
Created a ReactJS app that uses routes and wish to deploy it in a subfolder of my root web: https://myrootsite.com/myreactapp. Modified my package.json:
{
"name": "website",
&...
0
votes
0
answers
38
views
Troubleshooting incorrect content on mobile redirect
I own a domain called bigstore.com and have developed a Laravel website for it: www.bigstore.com. It's hosted on an Ubuntu 22.04 server utilizing Apache2, and the website is HTTPS-enabled. The server ...
0
votes
0
answers
9
views
How to add custom apache2/httpd header based on BALANCER_WORKER_ROUTE variable?
I have a very simple httpd apache2 setup, and would like to set a custom header only if the route=green BalancerMember is active and chosen for the request.
The following does not work:
<...
0
votes
0
answers
10
views
Node js on apache2 failed
I am trying to setup a node server on a apache...maybe thats a dumb idea idk.
When I try to start my node-project.service I get the following error.
node-project.service:
[Unit]
Description=Node.js ...
0
votes
0
answers
22
views
Apache2 Modsecurity configuration file error
I am trying to activate modsecurity by following the official documentation on https://www.linode.com/docs/guides/securing-apache2-with-modsecurity/
Firstly, the file I have is /etc/apache2/sites-...
-1
votes
0
answers
12
views
How to configure application inside the apache2 and application running on windows tomcat server
As per mentioned in title, my applications are running in two different windows server with different ports so i want perfect configuration for this achievement.
Here Apache2 is running on ubuntu ...
0
votes
1
answer
23
views
Troubles with installing redmine on linux server Ubuntu 22.04.4
i have get problem with REDMINE.. Could you please help me? I try describe everything i did
I made this install
sudo apt-get install apache2 libapache2-mod-passenger
After configure file /etc/apache2/...
0
votes
0
answers
11
views
Is it fine to omit "application server"(e.g. Gunicorn) part when deploying a Python Backend(e.g. Flask) application on a webserver?
I have a Flask application running on port 5001 on my remote Ubuntu 20.04 computer. I need to make sure that it can be accessed on the internet. My organization bought the domain name myapp.edu.
For ...
2
votes
0
answers
42
views
PHP does not load
im trying to Start PHP on my Webserver, but this is all im getting
root@ubuntu:/etc/apache2/sites-enabled# a2enmod php8.1
Considering dependency mpm_prefork for php8.1:
Considering conflict mpm_event ...
0
votes
0
answers
6
views
Ratchet WSS Handshake Error Apache2 XAMPP
I know the method I'm using is probably not advised but I think I'm missing a step. Im trying to establissh a secure web connection with ratchet server on apacche2 & XAMPP. I've setup proxypass.
...
-1
votes
1
answer
28
views
Why can I not find my index.html in WinSCP and replace it to make my Apache2 VPS server website hosting work?
In my rented VPS server and am using Apache2. I created an index.html file in the folder /var/www/html/. This .html file is correctly displayed when opening my new webpage.
However, I want to transfer ...
0
votes
0
answers
16
views
ReactJS app not opening on Apache2 server
I've modified the package.json file with 'homepage' variable and run the 'npm run build' function, and moved the output files to the desired location. However, the index.html page isn't being ...
0
votes
0
answers
20
views
Apache2 failing when enabling php mod (Ubuntu 20.4)
I've install php5.3 (from ppa:sergey-dryabzhinsky/php53), but when installing apache2 and then enabling it through sudo a2enmod php53 the output says to run sudo systemctl restart apache2, however ...
0
votes
0
answers
10
views
Vega OpenSearch: JSON url from Apache server loading failed
Vega from OpenSearch fails to load the url, the same issue occurs in online Vega editor. However, it is perfectly fine and rendered if I paste in Web browser.
"$schema": "https://...
-1
votes
0
answers
16
views
Problems with react SPA for a deployment
i got an issue with my deployment of my react app, that is a SPA, here is my apache2 conf file, but when i am on another url than "/", i got an exception like this : `Not Found
The requested ...
0
votes
1
answer
22
views
Tesseract Issues on Mac 'XAMPP'
I've installed tesseract on mac (ventura). When i run it in terminal it works fine. when I run the html php code using the apache2 server located in the
'/usr/local/' path
it works. I'm not sure ...
0
votes
0
answers
15
views
Apache2 404 error while accessing a file that is physically located in the directory on server
On my ubuntu server i have user farmer inside home/farmer i created directories /var/www/bit/ inside it i put file index.html
I have granted following rights to directories and index.html file
...
0
votes
0
answers
20
views
Running 2 Nodejs apps through Apache
I have 2 apps that I need to run on my Apache server:
My main landing page (Nodejs app running on port 5500)
Nodejs express project running on port 8080
My conf file looks like this:
<VirtualHost ...
0
votes
1
answer
93
views
Laravel Livewire Failed to Store File
I have deployed my Laravel Livewire app on my Ubuntu server (Apache2) and configured it. Livewire is working fine, but when I try to upload an image or any files, it returns an error.
The error on ...
0
votes
0
answers
26
views
How to add Proxy pass, Reverse proxy pass to my apache virtual host configuration?
I am working on a VPS fully managed server. Many applications are running on it. For one of my domains, I want to pass a proxy to it. I did ssh and found the below information from the /etc/apache2/...
1
vote
1
answer
70
views
Cannot access FastAPI app behind Apache HTTPS proxy on Google Cloud
I'm struggling to serve my FastAPI app securely on forge-code.com with HTTPS.
Here's what I've done so far:
Deployed my FastAPI app on a Google Cloud instance.
Successfully accessed the app using ...
0
votes
1
answer
29
views
RewriteEngine for different scenarios
I'm a bit struggling with the RewriteEngine using with a Linux machine.
Needed is to have 4 scenarios, 2 are working fine, 2 not (for sure because I do any kind of misconfiguration).
My goals:
Works
...
0
votes
0
answers
8
views
apache is downloading page instead of displaying it
Everything was working fine. I enables https and now the index page is asking me to save it. It is blank.
I used cetbot, everything went well. Then when I go to my home page is prompts me to save it.
...
0
votes
0
answers
18
views
GLPI and MantisBT on the same serveur, MantisBT error HTTP ERROR 403
I have install glpi 10.0.11 and mantisbt 2.26.0 on the same server a linux debian 12 and i have the glpi web page but i have an error (HTTP ERROR 403) for the mantisbt.
When I disable glpi apache2 ...
0
votes
0
answers
31
views
Errno 111 Connection refused: Issue with rendering PDF with xhtml2pdf in Django on a Linux server with static files images
I've successfully deployed my Django project on a Linux server, but I'm encountering an issue when trying to print PDF reports. The images located in the static folder are causing errors during the ...
0
votes
1
answer
37
views
Docker Wordpress Returning 500 Server Error
I was using the wordpress docker container for development when I started geting this error in my browser:
Internal Server Error
The server encountered an internal error or misconfiguration and was ...
0
votes
0
answers
12
views
Unable to run cgi program on apache2 server (with some mod_jk configuration)
In a apache2 server which have enabled mod_jk to access tomcat10 contexts, it was also enabled and configured the mod_cgid to run programs from the folder /var/www/apps/cgi-bin.
But when I try access ...
0
votes
1
answer
53
views
PHP $_FILES array remains empty after file upload
I have spent hours trying solve this issue but nothing worked. I am trying to upload a csv file of size 0.5 kb.
This is my html form:
<form action="" method="post" enctype="...
0
votes
0
answers
20
views
How do I make express-handlebars be rendered on apache server?
To learn how to use handlebars with Express, I followed this tutorial and it worked perfectly:
https://www.geeksforgeeks.org/handlebars-templating-in-expressjs/
Now, I'm trying to make it work for ...
0
votes
0
answers
22
views
Configuring Apache for HTTP to HTTPS and SSL Termination
I am running a couple containers on a host that are only listening for HTTP. I'm trying to configure Apache to perform the following:
Redirect any requests on port 80 to 443
Connect to the backend ...
0
votes
0
answers
17
views
Apache2 mod_rewrite S3 file upload request body buffer
I'm currently uploading a file directly to my S3 instance using the mod_rewrite to proxy the file upload from my Apache2 web server directly to my S3 instance.
RewriteCond %{REQUEST_METHOD} =PUT
...
0
votes
0
answers
55
views
Apache2 cannot proxy Grafana websocket connection?
My Grafana [server] config looks like:
[server]
protocol = http
http_addr = 127.0.0.1
http_port = 3000
domain = localhost
root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana/
And my ...
0
votes
0
answers
26
views
How to allow websocket via reverse proxy on apache 2.4
I am relatively new to server configuration and can't figure out how to do it.
I have a web server with a revers proxy which works:
<VirtualHost *:80>
ServerName vtt.domain.com
...
0
votes
0
answers
8
views
Apache2 Website Encounters js error when port forwarding
I'm running into an error that I am super stuck on. My website on a non secure, http connection at the ip of the server loads find with this apache setup below. I can connect to the ip address ...
1
vote
0
answers
49
views
Why does Directory work with RewriteRule, but DirectoryMatch fail?
The DirectoryMatch directive generally works fine for me.
However, when combined with RewriteRule, it can fail. And I don't understand why.
Now, I'm not asking for a workaround which would avoid the ...
1
vote
0
answers
16
views
ProxyPassMatch backreference issues
I am attempting to take all requests matching the regex ^/(map/maps/[^/]*/live/.*) redirect into a local server http://127.0.0.1:8100/. However, the path that needs to be passed to the backreference ...