Website

Results 1 to 4 of 4
  1. #1
    Valued Member gost0 is offline
    MemberRank
    Apr 2012 Join Date
    120Posts

    Showoff Website

    i got templates ..
    Last edited by gost0; 10-05-13 at 09:32 PM.


  2. #2
    Member slayer200230 is offline
    MemberRank
    Nov 2010 Join Date
    62Posts

    Re: Website

    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
    Code:
    <?php
    	if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
    		$uri = 'https://';
    	} else {
    		$uri = 'http://';
    	}
    	$uri .= $_SERVER['HTTP_HOST'];
    	header('Location: '.$uri.'/pw/');
    	exit;
    ?>
    that code directs the regular port 80 to the "pw" folder and displays all folders and files inside the folder

    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

  3. #3
    Valued Member gost0 is offline
    MemberRank
    Apr 2012 Join Date
    120Posts

    Re: Website

    upload or link
    Last edited by gost0; 10-05-13 at 09:33 PM.

  4. #4
    RaGEZONER fgru is offline
    MemberRank
    Sep 2009 Join Date
    germanyLocation
    1,510Posts

    Re: Website

    ... first u need to learn linux ... come back later ...



Advertisement