Open utterances-bot opened 1 year ago
Hello!!! I get to work a custom domain with toyr tutorial. Now How I can get a ssl certificate for this custom domain?
Hey! Great question! I'm working on a tutorial just for that. Stay tuned!
Hey @joaosagrath! I've got good news.
Here's the video tutorial on how to set up an SSL certificate. The written tutorial can be found here.
It did not work for me, I have Local by flywheel installed too, for that reason I am using 81 and 444 ports, I added the domain to the hosts like this:
127.0.0.1 googleapidemo.com #Xampp Site ::1 www.googleapidemo.com #Xampp Site
And the host is:
<VirtualHost *:81> ServerName googleapidemo.com ServerAlias www.googleapidemo.com DocumentRoot "C:/xampp/htdocs/googleapidemo.com/public" RewriteEngine on RewriteCond %{SERVER_NAME} =googleapidemo.com [OR] RewriteCond %{SERVER_NAME} =www.googleapidemo.com RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
<VirtualHost *:444> ServerName googleapidemo.com ServerAlias www.googleapidemo.com DocumentRoot "C:/xampp/htdocs/googleapidemo/public" SSLEngine on SSLCertificateFile "conf/ssl.crt/server.crt" SSLCertificateKEYFile "conf/ssl.key/server.key"
But can't access the site it says "ERR_CONNECTION_REFUSED"
@natirivero Can you access the website without the SSL certificate settings?
If you can, it means something is wrong with the SSL certificate configuration.
When you ran the makecert.bat
file, did you enter the value www.googleapidemo.com
for “Common Name (e.g server FQDN or YOUR name) []:”
input?
If you entered something else but www.googleapidemo.com
then the SSL certificate won't work.
Also, what browser are you using to access the website? Some browsers strictly refuse to access sites that have a self-signed certificate.
Ok, it works, only that I have to add the port in the end since I am not using the default ports (they are being used by another app), I need to go to the site like googleapidemo.com:444 and the it would have the cert, though it says it is not valid...
Hey, the issue was that I am using custom ports, because I also have Local by WP Engine running on default ports, thus 80 and 443.
The SSL is installed but I have to access the site like googleapidemo.com:444; which is not great but what can I do... Also it says the cert is invalid, but you mentioned that happens sometimes.
Thanks for the tuts,
Best,
Nat.
El El vie, 23 de feb. de 2024 a la(s) 4:18 p. m., Carol Pelu < @.***> escribió:
@natirivero https://github.com/natirivero Can you access the website without the SSL certificate settings?
If you can, it means something is wrong with the SSL certificate configuration.
When you ran the makecert.bat file, did you enter the value www.googleapidemo.com for “Common Name (e.g server FQDN or YOUR name) []:” input? If you entered something else but www.googleapidemo.com then the SSL certificate won't work.
Also, what browser are you using to access the website? Some browsers strictly refuse to access sites that have a self-signed certificate.
— Reply to this email directly, view it on GitHub https://github.com/Tynael/neutrondev-dot-com-comments/issues/2#issuecomment-1962002018, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP2Q27YPTWZVQSJC7L22UJLYVEBSZAVCNFSM6AAAAAA72LU27GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSGAYDEMBRHA . You are receiving this because you were mentioned.Message ID: @.***>
The SSL is installed but I have to access the site like googleapidemo.com:444; which is not great but what can I do
Yeah, not the best experience but at least you got a working self-signed SSL certificate 😅
Also it says the cert is invalid, but you mentioned that happens sometimes.
Yes, that's because it's not signed by a publicly trusted authority. This shouldn't mater as long as you use it only for local development.
Hello, I’m encountering an issue. I can access my domain glpi.local from the server where the application is installed, but I’m unable to access it from other computers on the same network (only ip adresse and hostname acess)
hosts file configuration:
127.0.0.1 glpi.local
::1 glpi.local
httpd-vhosts file configuration:
<VirtualHost > ServerName glpi.local ServerAlias glpi.local DocumentRoot "C:/xampp/htdocs/glpi/public" <Directory "C:/xampp/htdocs/glpi/public"> Require all granted RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.)$ index.php [QSA,L]
@tarikaboutabit To access the domain glpi.local
from other devices within the same network you would have to edit the hosts
file on each device:
Windows: C:\Windows\System32\drivers\etc\hosts
Mac/Linux: /etc/hosts
Then add an entry with your host' local IP address and the domain name:
192.168.x.x glpi.local
Use Custom Domain Instead of Localhost in XAMPP
Quickly create and use a custom domain (example.com) instead of localhost (127.0.0.1) in XAMPP.
https://neutrondev.com/xampp-custom-domain/