I am currently working on Ubuntu 14.04 server. I need to access my local website through HTTPS. I am trying to get apache certificate using sudo certbot --apache.
This will result in the following output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Which names would you like to activate HTTPS for?
1: shopworx.io
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter âcâ to cancel): 1
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for shopworx.io
Waiting for verificationâŚ
Cleaning up challenges
Failed authorization procedure. shopworx.io (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://shopworx.io/.well-known/acme-challenge/PgONPDqJeTo_e_gkUBQGL5diox22pWoqmLLPtqW1G64: Timeout during connect (likely firewall problem)
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: shopworx.io
Type: connection
Detail: Fetching
http://shopworx.io/.well-known/acme-challenge/PgONPDqJeTo_e_gkUBQGL5diox22pWoqmLLPtqW1G64:
Timeout during connect (likely firewall problem)To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If youâre using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
Please help me out to get it done. I am a new bee in this.
Apache version: Apache 2.2.22
My /etc/apache2/sites-available/default contains following:
<VirtualHost :80>
ServerAdmin webmaster@localhost
ServerName shopworx.io
RewriteEngine On
RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 9
RewriteCond %{HTTP_HOST} â^192.168.1.202â
#RewriteCond %{HTTP_HOST} â^privatecloud.comâ
RewriteCond %{REQUEST_URI} â^/$â
RewriteRule ^(.) https://192.168.1.202/con
#RewriteCond â%{HTTP_HOST}â â^([^.]+).privatecloud.comâ [NC]
RewriteCond â%{HTTP_HOST}â â^([^.]+).192.168.1.202.comâ [NC]
RewriteCond â%1â â!=loginâ [NC]
RewriteRule â/server/connector/([^.]+)â â/server/connector/$1?customer=%1â [PT,QSA]
RewriteRule â^/assets/([^*]+)â â/con/assets/$1â [PT,QSA]
DocumentRoot /var/www
Options FollowSymLinks
AllowOverride None
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory â/usr/lib/cgi-binâ>
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
ErrorLog ${APACHE_LOG_DIR}/error.log
Possible values include: debug, info, notice, warn, error, crit,
alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined