Jump to content

Web Development local server set up and all that.

mrchow19910319
Go to solution Solved by colonel_mortis,
9 minutes ago, mrchow19910319 said:

one more question, when you said different websites, 

do you mean : 

 

a) completely different website.


 

OR 

 

b) one site that contains different pages. 

 

 

a - for example, if this site was using apache (we actually use nginx), and the prod and beta sites were on the same server, we would have a virtual host for linustechtips.com and one for beta.linustechtips.com, but all the pages within linustechtips.com are handled by one virtual host. In your server configuration, you will have set a base path, probably /var/www/html, so to create multiple pages you just need to add multiple different files within that directory. A very basic example would be that your iamthebest.com/ page is at /var/www/html/index.html (the index.html or .php file is the default if no file is specified), then iamthebest.com/about/ is at /var/www/html/about/index.html (or iamthebest.com/about.html at /var/www/html/about.html), etc.

12 minutes ago, mrchow19910319 said:

what about step 3? initial ubuntu server setup?? 

what about that ? Do i only need to do that in the real server environment??? 

That step is only needed on a real server, and you would need to do that before you can do step 1 (it is listed as a prerequisite for it).

11 hours ago, WereCatf said:

The OP wasn't talking about virtual-machines, he was talking about the Apache-feature where you can define multiple websites on multiple domains to be served from a single Apache-instance, each with their own SSL-certificates and all.

And in particular, virtual servers (or equivalent) are required in order to serve different sites from the same IP address. Using VMs would still need apache or nginx set up with virtual servers to forward the request to the appropriate VM, if they are all accessible from the same public IP.

HTTP/2 203

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×