How to host Jekyll static website on Apache2 web server - jekyll

I have made a static website using Jekyll. I also have hosted it in github. Can I host it in apache2 server?

Related

Configure Subdomain on single amazon lightsail instance

i have successfully installed my application using this technique https://docs.bitnami.com/aws/infrastructure/lamp/administration/create-custom-application-php/
my main domain xyz.com is working fine .now i want to install wordpress in a folder and point it to subdomain blog.xyz.com .kindly guide me how to create subdomoain on amazon lightsail bitnami to point to my directory opt/bitnami/apache/htdocs/blog.
one other thing currently my subdomain blog.xyz.com is also showing root website xyz.com
Bitnami Engineer here,
You will need to follow the same guide to deploy the WordPress application on top of your current instance. However, when configuring the vhosts files (wordpress-vhost.conf and wordpress-https-vhost.conf files), you will need to set the domain you want to use to access WordPress
...
ServerAlias blog.xyz.com
...
https://httpd.apache.org/docs/2.4/mod/core.html#serveralias
Note: You can set the ServerName parameter as well.
https://httpd.apache.org/docs/2.4/mod/core.html#servername

Associate ec2 to godaddy on tomcat using 8080 port

I created an ec2 instance and installed apache tomcat on that instance.
I have my java and html code on that apache 8080 server. I want to host the html folder of the code to godaddy. The address for the index page will be something like:
amazonPrivateIp:8080/abc/html.
How can I make godaddy direct my domain directly to this part of the instance?

POint domain to ec2 ip with page name

I have a domain in bigrock and Ihave ec2 instance running on aws with elastic ip.
Over there I have instantiated tomcat server and it has my website files in its htdocs folder.
I have managed DNS of bigrock to this ec2 ip.
So when I browse for my domain name in browser it launches tomcat home home page insteade of index.html file
So how can I load index.html file by default?
You can't point a domain name to a specific web page. A domain name points to a server. You have already configured your domain name correctly.
You have a few options:
Configure Tomcat to serve your application as the root context.
Place a reverse proxy like Nginx in front of Tomcat, and configure it to route requests to your Tomcat app.

Remote Connect to OpenShift MySQL without Port Forwarding

I am trying to set up production and development environment for my web project hosted at Openshift PAAS.
I should be able to deploy my web application after final tests and changes to Openshift (production environment).
I set my development environment using GITHUB(Since I do not want other people to connect to openshift).
How do they can connect to Openshift MYSQL server hosted at cloud without port forwarding.
It is not possible to connect to the MySQL server that is hosted on your OpenShift application without using port forwarding.

Connect a website on hosting server to my localhost phpmysql

Just wandering if I can host my database locally for the website that is hosted on hosting provider's server. It means,
The web pages to be stored on hosting server.
The database to be stored on localhost (phpMySql).
In summary, How can I point my website to use the localhost database?
As #Eggplant sais in his comment, you can set your php to use "remote server" and link it to your localhost.
For example see this tutorial how to link it:
http://www.danielmois.com/article/Manage_remote_databases_from_localhost_with_phpMyAdmin
But your localhost should have public IP address and should be always online for your website to work correctly.
Not a good idea, IMHO