![bitnami mean and wordpress bitnami mean and wordpress](https://seoneurons.com/wp-content/uploads/2020/12/wordpress-configuration-for-ssl-1024x748.png)
htaccess of WordPress, it won’t work s will be broken and you won't be able to access any post etc. $ sudo/opt/bitnami/ctlscript.sh restart apacheĪt this point, if you access your website using second domain, it’ll be pointing towards its sub directoryīut, when you try to make use of. Now, include the vHost configration files of both websites in.Comment the line Include "/opt/bitnami/apps/wordpress/conf/nf" in the file.In my case, both of my files will be as follows.įollow these steps to create virtual hosts. Insert the following information in the files
![bitnami mean and wordpress bitnami mean and wordpress](https://www.prowebtips.com/wp-content/uploads/2020/01/Bitnami-Banner-on-site.png)
If you are using Bitnami stack, your “nf” will be /opt/bitnami/apps/wordpress_instance/conf/nf.Įdit files of both of your instances, i.e Well, they are right, but the problem is – it doesn’t work like this in Bitnami LAMP stack.Ĭonnect to your VM because you're about to edit some files on the server. If you have searched about adding vHosts you’ll come across the information where people have said to edit files like /etc/httpd/nfor/etc/apache2/nf like the solution in this SuperUser thread. In my case, I’m using Public URL which is “.com”.Īdd Virtual Host Information in nf Files Head to your domain provider, namecheap in my case, and point both domains to a Public URL or Public IP of your server, meaning, add CNAME or A Record respectively. My main website which resides at main public http folder is “and other website sitting in sub directory is “(main_website/samknives), public URL is “.com” VM is installed in Microsoft Azure and I’m using Bitnami LAMP stack. In this tutorial, I’ll be using a real world example. Virtual host is a method in which you can host more than one website on a single machine. Here, DNS has failed to serve you, but Virtual Host will help you. In this case, your domain should be pointing at a sub directory, but DNS doesn’t work like that – either it’s CNAME or A record – you cannot point your domain to sub directory in DNS setting. In this scenario, you’ll be needing multiple domains and your other WordPress instances will be installed in the sub directory. You can have your own reasons for doing that, but let's say you don’t want to create another VM in the cloud or configure a whole new server for your blog or website and wanted to use existing server, VM, or OS so that's why you needed two WordPress instances. In my previous post, I told you guys about i nstalling multiple WordPress instances in a single VM.