Question

How to upload web pages on the server?

Hi,

I installed a LEMP stack on my server following this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-14-04 Everything works. Now I am logged as a user and am in this dir: /home/username

Could you pls direct me what dir I need to go to upload my wep pages and be able to access them in my browser like IP_ADDRESS/filename.php ?

If there are any tutorials on that I’d appreciate if you link them. I want to use console for creating/uploading web pages.

Kind regards,

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This question was answered by @gndo:

These two tutorials are a good introduction at configuring nginx:

https://www.digitalocean.com/community/tutorials/understanding-nginx-server-and-location-block-selection-algorithms

https://www.digitalocean.com/community/tutorials/understanding-the-nginx-configuration-file-structure-and-configuration-contexts

Uploading from the console? Perhaps you may instead want to look at a file transfer program like FileZilla which is available for several platforms.

View the original comment