bitnami / vms

Bitnami VMs
https://bitnami.com
Other
200 stars 44 forks source link

[<LAMP>] Multiple websites on one instance #1543

Closed huzanf closed 1 week ago

huzanf commented 1 month ago

Describe your issue as much as you can

Hello,

I would like to know how to hoist multiple websites on one LAMP instance.

gongomgra commented 1 month ago

Hi @huzanf,

Please find the required documentation in the link below

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

huzanf commented 1 month ago

Thanks @gongomgra How do I have multiple SSL for the same?

huzanf commented 1 month ago

Hi @gongomgra

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

Also, if I want one subdomain to hoist a staging website how can I do that? Do I need to replicate the content in the vhosts file and add it as a subdomain on my DNS?

gongomgra commented 4 weeks ago

Hi @huzanf,

You can generate as many SSL certificates as required by following our guide linked below, but do not create the symlinks in the step number 3 to server.crt and server.key. After that, point each SSLCertificateFile and SSLCertificateKeyFile to the generated files (named after your apps domains) in the https-vhost.conf files.

https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/#alternative-approach

Regarding the staging domain I think you are right. You need to create a new custom application as usual, configure it to use the subdomain, and also update your DNS registries.

github-actions[bot] commented 1 week ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] commented 1 week ago

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.