Hello
I have a question.
Is it posible to run 2 servers on same ip ?
whit 2 computers.
Don't know.. possibly but with different login port...
You are also able to use multiworld... with one computer, same ip
Make Apache listen on 2 different ports OR split the websites' content into 2 subfolders.uhm ok
Cuz i run a server right now, but my brother wants to run a server to xD
i know it works whit different ports, but what about 2 different home pages ? :s
Make Apache listen on 2 different ports OR split the websites' content into 2 subfolders.
Can you explain how i split the websites content into 2 subfolders ? xD
<?php
switch($_SERVER['SERVER_NAME'])
{
case 'your.server.ip':
header('Location: /your_server_folder_name/');
break;
case 'your.brothers.server.ip':
header('Location: /your_brother_server_folder_name/');
break;
default:
die('wAt Ar U doIng Here?');
break;
}
?>
Ye, just move all the content from both sites into 2 folders inside httdocs or www depend of the web server u using, and then make a file named index.php and put this content, (Note you may edit it in order to fit your needs)
PHP:<?php switch($_SERVER['SERVER_NAME']) { case 'your.server.ip': header('Location: /your_server_folder_name/'); break; case 'your.brothers.server.ip': header('Location: /your_brother_server_folder_name/'); break; default: die('wAt Ar U doIng Here?'); break; } ?>
Can you explain how i split the websites content into 2 subfolders ? xD
Well, we better start to beat in some knowledge then. And I personally can't say that the method is any harder, just copy paste into the apache config file