i got templates ..
Printable View
i got templates ..
you can host a website directly from the pwserver, make your page upload it to /var/www/pw/ name it what ever you like, then to link to it simply open index.php in /var/www/ folder it will look something like this
that code directs the regular port 80 to the "pw" folder and displays all folders and files inside the folderCode:<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/pw/');
exit;
?>
if you change the line
header('Location: '.$uri.'/pw/');
to something like
header('Location: '.$uri.'/pw/index.html');
it will now point to a direct file called index.html
change "index.html to what ever you named your page, lode your ip and you will see your webpage
ps. search the forums a bit just 5 days ago this same question was asked
upload or link
... first u need to learn linux ... come back later ...