• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Publishing website from your house

atomic chavez

Hi there
Joined
Mar 8, 2009
Messages
84
Reaction score
0
Location
Mexico Monterrey
Hello fellow OTlanders

I was wondering if someone could enlighten me, I am trying to run me little war project at home.

I had several experiences renting dedicated servers so I know that when you want to get your website online I did the following:
-First I bought a domain and I redirected the domain to the IP adress of my dedicated server.
-Secondly, in XAMPP folder "htdocs" I created a folder and passed my website files on to it.
-Then in xampp/htdocs/index.php/ I modified it:​
THIS IS THE ORIGINAL INDEX.PHP​
PHP:
<?php
	if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
		$uri = 'https://';
	} else {
		$uri = 'http://';
	}
	$uri .= $_SERVER['HTTP_HOST'];
	header('Location: '.$uri.'/xampp/');
	exit;
?>
Something is wrong with the XAMPP installation :-(

THIS IS THE MODIFIED INDEX.PHP (In line 8 you can see how I redirect to my ot server website inside the folder "OTWEBSITE"
PHP:
<?php
	if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
		$uri = 'https://';
	} else {
		$uri = 'http://';
	}
	$uri .= $_SERVER['HTTP_HOST'];
	header('Location: '.$uri.'/xampp/OTWEBSITE');
	exit;
?>
Something is wrong with the XAMPP installation :-(

Does someone know how to do this same process but at a home computer?
What Ip adress is going to be at the index.php?
How is the domain going to know which computer with the same IP is going to be the one with the website files (I have more than one computer at home)

REP+++++++++++ if you post in my thread. :wub::wub::wub:
 
Back
Top