Unable to configure apache to listen to port 443 in Ubuntu

I’ve setup Certbot on Ubuntu, the certificate was created successfully outputting the following:

Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/bin-depot.co.uk/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/bin-depot.co.uk/privkey.pem

After restarting apache https was not working, it simply failed to connect so I ran:

sudo lsof -iTCP -sTCP:LISTEN -P

…and noted port 443 was not listed to (only port 80).

So I updated default-ssl.conf as shown in steps 3 & 4 here: tutorials/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-14-04

After updating default-ssl.cons I ran: sudo a2ensite default-ssl.conf

…and got the message that default-ssl was enabled.

I then restarted Apache but am still unable to connect. It appears port 443 is still not configured.

I’m not sure what steps to take next. Any input would be appreciated. The domain is https://bin-depot.co.uk

How to use wildcard search in apache solr search module?

I am working on apachesolr search module. I want to implement wildcard search i have used hook_apachesolr_query_prepare() function to modify apachesolr query but it is not working can any one give me solution. I have implemented code like this. I have taken reference from here : https://www.drupal.org/project/apachesolr/issues/1539284

function custommodule_apachesolr_query_prepare(DrupalSolrQueryInterface &$  query, &$  caller) {    $  search = '';   $  keywords = preg_split("/[\s,]+/", $  query->getParam('q'));     foreach ($  keywords as $  keyword) {     $  search .= '*' . strtolower($  keyword) . '* ';       }    $  query->addParam('defType', 'edismax');     $  query->replaceParam('q', $  search);    } 

Two similar sites, once Apache instance, url rewrite works on one but not the other

My rewrite rules are designed to hide my directory structure and to make URLs easier to read. the gcems site works as expected while the vigotwpfd site will not load the files beyond the first page as well as throwing an error on the first page.

Here is my setup: Development platform: Both sites work as intended.

“Live / Testing” platform: one machine running one instance of Apache2.4. on linux

One dynamic ip connection to the internet.

Two host names, both using duckdns.org as my dynamic IP provider. gcems.duckdns.org vigotwpfd.duckdns.org and setup as virtual hosts.

both sites are running PHP7.x

Both sites are setup very similar. Same directory structure. File structures are similar. Both use URL re-writing rules, which are identical with the exception that the URL rules for gcems point to gcems and the rules for vigotwpfd point to vigotwpfd.

The apache domain config files and .htacess files are also identical, with the exception of gcems vs vigotwpfd.

The following is a simplified directory / file structure for both domains. vigotwpfd ==> /var/www/vigotwpfd gcems ==> /var/www/html

/var/www/site/ |-- assets |   |-- css |   |   `-- view.css |   |-- gallery |   |   `-- blank.jpg |   |-- htc |   |   `-- iepngfix.htc |   |-- images |   |   `-- <image files> |   `-- js |       `-- <javascript files> |-- classes |   |-- Bootstrap.php |   |-- Controller.php |   |-- Messages.php |   `-- Model.php |-- controllers |   `-- <controller files> |-- models |   `-- <models files> |-- views |   |-- <other directories and php web pages> |   `-- main.php |-- config.php |-- .htaccess `-- index.php 


Options +FollowSymLinks RewriteEngine on RewriteRule ^([a-zA-Z]*)/?([a-zA-Z]*)?/?([a-zA-Z0-9]*)?/?$   index.php?controller=$  1&action=$  2&id=$  3 [NC,L] Options +FollowSymLinks RewriteEngine on  RewriteCond %{SERVER_PORT} 80 # This checks to make sure the connection is not already HTTPS -  port 80 indicates a non-secured HTTP conection.  RewriteRule ^(.*)$   https://site.duckdns.org/$  1 [R=301,L] # This rule will redirect users from their original location to the same location but using HTTPS.  RewriteRule ^([a-zA-Z]*)/?([a-zA-Z]*)?/?([a-zA-Z0-9]*)?/?$   index.php?controller=$  1&action=$  2&i$   


<VirtualHost *:80>         ServerAdmin webmaster@localhost         ServerName gcems.duckdns.org         ServerAlias *.gcems.duckdns.org         DocumentRoot /var/www/html          ErrorLog $  {APACHE_LOG_DIR}/gcems_error.log         CustomLog $  {APACHE_LOG_DIR}/gcems_access.log combined </VirtualHost> 

error message found in vigotwpfd_error.log

[Mon Nov 05 08:33:40.101435 2018] [:error] [pid 2993] [client] PHP Notice:  Undefined index: controller in /var/www/vigotwpfd/classes/Bootstrap.php on line 38, referer: https://vigotwpfd.duckdns.org/ [Mon Nov 05 08:33:40.101670 2018] [:error] [pid 2993] [client] PHP Stack trace:, referer: https://vigotwpfd.duckdns.org/ [Mon Nov 05 08:33:40.101784 2018] [:error] [pid 2993] [client] PHP   1. {main}() /var/www/vigotwpfd/index.php:0, referer: https://vigotwpfd.duckdns.org/ [Mon Nov 05 08:33:40.101914 2018] [:error] [pid 2993] [client] PHP   2. Bootstrap->__construct() /var/www/vigotwpfd/index.php:60, referer: https://vigotwpfd.duckdns.org/ [Mon Nov 05 08:33:40.102365 2018] [:error] [pid 2993] [client] PHP Notice:  Undefined index: action in /var/www/vigotwpfd/classes/Bootstrap.php on line 45, referer: https://vigotwpfd.duckdns.org/ [Mon Nov 05 08:33:40.102488 2018] [:error] [pid 2993] [client] PHP Stack trace:, referer: https://vigotwpfd.duckdns.org/ [Mon Nov 05 08:33:40.102556 2018] [:error] [pid 2993] [client] PHP   1. {main}() /var/www/vigotwpfd/index.php:0, referer: https://vigotwpfd.duckdns.org/ [Mon Nov 05 08:33:40.102630 2018] [:error] [pid 2993] [client] PHP   2. Bootstrap->__construct() /var/www/vigotwpfd/index.php:60, referer: https://vigotwpfd.duckdns.org/ 


Here are my theories:
1) There is an issue in the URL rewrite system
2) There is an issue in the apache configs (either for the vigotwpfd site or the server itself
3) My code is messed up.

I have ran vigotwpfd step by step through a debugger but I have yet to find out where my problem is.

If this is not the proper place for this question, please point me to where I need to go.

Thank you.

Apache – Possible to access virtualhost from www?

I am hosting a website through WAMP & my personal computer. The website can be reached no matter in LAN or WWW through typing IP. But when typing v-host, can be only reached in LAN but not WWW.

Reaching website Local network WWW

Typing IP O O (Ex:

Typing v-host O X (Ex: www.1234.com)

(Below are v-host codes) # ServerName www.MYB.com DocumentRoot “d:/wamp64/www/index” Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local