Coder Social home page Coder Social logo

Comments (6)

rhastingsNEKLS avatar rhastingsNEKLS commented on June 26, 2024

I did find a document from Bitnami that showed how to put vhost blocks into a file in the vhost directory, but the instructions weren't terribly clear and it didn't work for me, so I'm still looking for a good explanation of how to set up multiple vhosts for Bitnami's current architecture.

from vms.

gongomgra avatar gongomgra commented on June 26, 2024

Hi @rhastingsNEKLS,

The bitnami-apps-prefix.conf and bitnami-apps-vhosts.conf files are present in very old images that we no longer support. We recommend you to launch a new one and migrate your data there. In the new instance, you can follow the next guide to install custom applications using virtualhosts.

https://docs.bitnami.com/aws/infrastructure/lamp/administration/create-custom-application-php/

My instructions for creating new servers in AWS Lightsail with Bitnami include editing 2 files in the bitnami installation

About that, can you share with us the docs you are referring to in case they are public? As mentioned above, those files are no longer present in our images (for a long time already)

from vms.

rhastingsNEKLS avatar rhastingsNEKLS commented on June 26, 2024

Ok, thanks - that's a little bit more detailed than the documentation I'd found the other day, so I'll go through and try that. I'm running about 25 Wordpress sites on the server I'm provisioning so the "myapp" part of the file name should be wordpress? Does it matter? I have a wordpress-vhosts.conf file now that I'd set up with all of the site's vhost blocks included in it (though I need to go back and make sure the ServerAlias * is not in any of them. That might be causing issues) but the site is still showing the Bitnami default application screen for each domain that I have tested. I'll go through the process in the documentation you've provided and see if that fixes the issue. As for the documentation I'm working from - it's a Google Doc that we'd received from the consulting company who set up our Lightsail implentations and is not public. We did this about 8 years ago and I've just been using the docs I had until this server update, which is the first time I'd run into the new architecture. Thanks for the pointers!

from vms.

rhastingsNEKLS avatar rhastingsNEKLS commented on June 26, 2024

Actually working through the process, I have another question - should I be creating all of these under the "apps" vhost file (as in the old Bitnami architecture, all of my web folders are in the apps directory under /opt/bitnami/) or should I create a separate vhost file for each app in that directory - the folders in the apps directory are the ones that hold the wordpress sites. So I have CKLS1 for one site, CKLS2 for another site, etc. - should I be creating CKLS1-vhost.conf, CKLS2-vhosts.conf files with the virtual host block inside of it for each site I'm hosting? Or is my single apps-vhost.conf file with all of the blocks inside of it right? I did remove the server alias line and tried it again - still no luck, so now I'm wondering if each site should be it's own app with it's own vhost (and ssl) conf file?

from vms.

gongomgra avatar gongomgra commented on June 26, 2024

@rhastingsNEKLS Bitnami installations follow a whole new structure in newer servers where each app is hosted at the /opt/bitnami/app-name directory, where app-name is any valid name for a Linux directory (I highly recommend to avoid using white spaces though). The guide I shared covers this new way of adding apps. You will have to add separate Apache configuration for each app into Apache vhosts config folder. Also remember to restart Apache for changes to take effect.

As for the documentation I'm working from - it's a Google Doc that we'd received from the consulting company who set up our Lightsail implentations and is not public. We did this about 8 years ago and I've just been using the docs I had until this server update, which is the first time I'd run into the new architecture. Thanks for the pointers!

Thanks for confirming. We updated the filesystem structure some time ago, and the docs as well, but I was wondering if we missed to update anything.

from vms.

rhastingsNEKLS avatar rhastingsNEKLS commented on June 26, 2024

from vms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.