Skip to main content

Posts

Showing posts from November, 2016

Drupal clean url virtual host

# Place any notes or comments you have here # It will make any customisation easier to understand in the weeks to come # domain: domain1.com # public: /home/demo/public_html/domain1.com/ <VirtualHost *:80>   # Admin email, Server Name (domain name) and any aliases   ServerAdmin navin@cheapflysky.com   ServerName  cheapflysky.com   ServerAlias www.cheapflysky.com   # Index file and Document Root (where the public files are located)   DirectoryIndex index.php   DocumentRoot /var/www/html/cheapflysky.com   <Directory /var/www/html/cheapflysky.com/>    Options Indexes FollowSymLinks MultiViews    AllowOverride All    Order allow,deny    allow from all </Directory>   # Custom log file locations   LogLevel warn   ErrorLog /var/log/apache2/error-cheapflysky.com.log   CustomLog /var/log/apache2/access-cheapflysky.com.log combined </VirtualHost>

How to install SSL on any domain which is commercialy bought

1. get ssl from ssls.com which is comodo 2. go to my certificates. 3. generate CRS on https://www.thesslstore.in/ssltools/csr-generator.php#results 4. save both certificate request and private key code in a file 5. validate domain with email or file upload. 6. after some time certificate will become active. 7. download files and upload them to a save folder on server. 8. upload privatekey file you saved in same folder. and change 000-default.conf file or any virualhost file <VirtualHost *:80>         # The ServerName directive sets the request scheme, hostname and port that         # the server uses to identify itself. This is used when creating         # redirection URLs. In the context of virtual hosts, the ServerName         # specifies what hostname must appear in the request's Host: header to         # match this virtual host. For the default virtual host (this file) this         # value is not decisive as it is used as a last resort host regardless.