Recent posts
#81
Apache 2.4 / Re: Problem after Lets Encrypt...
Last post by mario - December 08, 2022, 09:46:34 AM> Now just have to work out why all the sites change from HTTP to HTTPS
Do you have any rewrite rules or is it the browsers that want to use HTTPS. For example Chrome and Firefox try https first before thinking of plan HTTP.
> why it lands at the front door of the router instead of going through to the site.
That seems more like a port forwarding issue or a provider issue (blocking the 443 port)
Do you have any rewrite rules or is it the browsers that want to use HTTPS. For example Chrome and Firefox try https first before thinking of plan HTTP.
> why it lands at the front door of the router instead of going through to the site.
That seems more like a port forwarding issue or a provider issue (blocking the 443 port)
#82
Apache 2.4 / Re: Problem after Lets Encrypt...
Last post by mario - December 08, 2022, 09:43:02 AMThe last error message can be solved by setting a Name in the glocal config
like
IIRC it is in /etc/apache2/apache2.conf on ubuntu
like
Code Select
ServerName localhostIIRC it is in /etc/apache2/apache2.conf on ubuntu
#83
Apache 2.4 / Re: Problem after Lets Encrypt...
Last post by ozstar - December 08, 2022, 04:30:21 AMWell with thanks at last, with lots of help from the web I guess message shows apache is working Smile
Now just have to work out why all the sites change from http to https and why it lands at the front door of the router instead of going through to the site. Maybe I should start a new thread for this?
Now just have to work out why all the sites change from http to https and why it lands at the front door of the router instead of going through to the site. Maybe I should start a new thread for this?
Quoteroot@zorin162-VirtualBox:/etc/apache2/sites-available# systemctl status apache2
* apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-12-08 14:00:06 AEDT; 28s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 16767 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 16771 (apache2)
Tasks: 55 (limit: 10660)
Memory: 5.6M
CGroup: /system.slice/apache2.service
|-16771 /usr/sbin/apache2 -k start
|-16773 /usr/sbin/apache2 -k start
`-16774 /usr/sbin/apache2 -k start
Dec 08 14:00:06 zorin162-VirtualBox systemd[1]: Starting The Apache HTTP Server...
Dec 08 14:00:06 zorin162-VirtualBox apachectl[16770]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.>
Dec 08 14:00:06 zorin162-VirtualBox systemd[1]: Started The Apache HTTP Server.
#84
Apache 2.4 / Re: Problem after Lets Encrypt...
Last post by ozstar - December 08, 2022, 01:53:15 AMMany thanks guys. I appreciate the help.
Working through the results of those commands now and checking out the links :-)
Working through the results of those commands now and checking out the links :-)
#85
Third-party Modules / Re: mod_log_rotate-1.0.2-2.4....
Last post by ramunask - December 07, 2022, 08:28:43 PMIt's not browser cache. From the very first attempt I have chosen "mod_log_rotate-1.0.2-2.4.x-x64-vc17.zip" from Germany location. Downloaded file name was correct, but the contents inside were with different module. It might be caching issue on hosting side or just a human error when publishing module ZIP file.
#86
Third-party Modules / Re: mod_log_rotate-1.0.2-2.4....
Last post by Gregg - December 07, 2022, 07:25:56 PMFunny, I downloaded the file and when I opened it, same thing.
I looked in the files that I had uploaded and they were correct. I uploaded them again.
This happened twice, so I cleared my browser's cache, then all was right with the world again.
It seems chrome caches downloaded files, I'm not used to that coming from a Firefox/Mozilla background.
I looked in the files that I had uploaded and they were correct. I uploaded them again.
This happened twice, so I cleared my browser's cache, then all was right with the world again.
It seems chrome caches downloaded files, I'm not used to that coming from a Firefox/Mozilla background.
#87
Apache 2.4 / Re: Problem after Lets Encrypt...
Last post by mario - December 07, 2022, 12:06:42 PMYou may check the syntax after changes
The envvars file is an ubuntu thing...
Code Select
source /etc/apache2/envvars
/usr/sbin/apachectl -S
The envvars file is an ubuntu thing...
#88
Third-party Modules / Re: mod_log_rotate-1.0.2-2.4....
Last post by ramunask - December 07, 2022, 08:55:06 AMAnd now mod_log_rotate-1.0.2-2.4.x-x64-vc17.zip contains wrong module - "mod_limitipconn.so".
#89
Apache 2.4 / Re: Problem after Lets Encrypt...
Last post by Gregg - December 07, 2022, 05:18:33 AMIt says your missing something. Look at your other <Directory> containers, can you spot what the first one's missing?
<Directory argument>
Giving some argument (path of a directory) will fix that error.
A single / is sufficient.
This is a good place to start with in the docs when it comes to directives. https://httpd.apache.org/docs/2.4/mod/quickreference.html
I would suggest you should digest this one as well. https://httpd.apache.org/docs/2.4/sections.html
My guess is you will run into other problems not related to the current but the service will start.
<Directory argument>
Giving some argument (path of a directory) will fix that error.
A single / is sufficient.
This is a good place to start with in the docs when it comes to directives. https://httpd.apache.org/docs/2.4/mod/quickreference.html
I would suggest you should digest this one as well. https://httpd.apache.org/docs/2.4/sections.html
My guess is you will run into other problems not related to the current but the service will start.
#90
Apache 2.4 / Re: Problem after Lets Encrypt...
Last post by ozstar - December 06, 2022, 10:40:44 PMI tried to edit the above post as I saw the lower text was cut off. Here is the correct terminal text..
as I see it says line 12 of the -ssl.conf, here is that file. Line 12 on my editor is the first line of <Directory>
<VirtualHost *:443>
ServerName mysitemc.com
ServerAlias www.mysitemc.com
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/mysitemc
<Directory>
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/mysitemc>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
Quoteroot@zorin162-VirtualBox:~# systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2022-12-06 20:22:24 AEDT; 11h ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 585 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Dec 06 20:22:20 zorin162-VirtualBox systemd[1]: Starting The Apache HTTP Server...
Dec 06 20:22:24 zorin162-VirtualBox apachectl[610]: AH00526: Syntax error on line 12 of /etc/apache2/sites-enabled/mysitemc-ssl.conf:
Dec 06 20:22:24 zorin162-VirtualBox apachectl[610]: <Directory> directive requires additional arguments
Dec 06 20:22:24 zorin162-VirtualBox apachectl[585]: Action 'start' failed.
Dec 06 20:22:24 zorin162-VirtualBox apachectl[585]: The Apache error log may have more information.
Dec 06 20:22:24 zorin162-VirtualBox systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Dec 06 20:22:24 zorin162-VirtualBox systemd[1]: apache2.service: Failed with result 'exit-code'.
Dec 06 20:22:24 zorin162-VirtualBox systemd[1]: Failed to start The Apache HTTP Server.
root@zorin162-VirtualBox:~#
as I see it says line 12 of the -ssl.conf, here is that file. Line 12 on my editor is the first line of <Directory>
<VirtualHost *:443>
ServerName mysitemc.com
ServerAlias www.mysitemc.com
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/mysitemc
<Directory>
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/mysitemc>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>