Re: HELP! Change default ubuntu screen on web server
Originally Posted by
Jordan_Hickin
I have just got access to the Ubuntu Default Webpage html code by doing
Code:
root@webserver1:/home/adminjah# vi /var/www/html/index.html
So i can change the ubuntu page... how do i completely replace it via ftp?
So with FTP you cannot normally load things directly to the /var/www/html directoy unless you have some screwy permissions changes made, which I do not advise. So if you can upload you page into your home directory, you can then move it using a command on the server, something like this:
Code:
sudo mv /var/www/html/index.html /var/www
This will move the default webpage out of the host directory.
Code:
sudo mv /home/user/index.html /var/www/html
This will move the page you uploaded into your home directory to the webserver's host directory. Change user in the command above to the username you are using.
"Seek freedom and become captive of your desires. Seek discipline and find your liberty."
-Chapterhouse Dune
Bookmarks