• 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!

Solved How to Run two websites with uniserver

Zaggyzigzig

plx itens menz
Joined
Aug 25, 2014
Messages
386
Reaction score
50
Location
Canada Ontario
is it possible to host 2 instances of uniserver? I am hosting 2 servers right now but cant figure out how to open 2 instances of the www file on uniserver, any ideas?


I have a template made so when you enter you see two websites, but only one works.. And i cant figure out how to get multi-server running with uniserver!
 
Last edited:
Thanks, I have reviewed that earlier, Found that in google ;p, Anyway do you think its better to run 2 instances? Or Uniserver and Wamp together? one for each site?, thanks would be great to hear what you think!
Running two instances of a program will result in one website will run on another port for example 81.
Then you need to add :81 at the end of the address to view that website.

I know I ran a simple script years ago that checked the address the visitor used and redirected to the correct directory/website (on same webserver).
This is not the best way to do it tho.


But the best way would be to setup VHost and use only once instance and diffrent domains.
example.com = www/example
1.example.com = www/example1

You can read more about VHosts for Uniform here:
http://wiki.uniformserver.com/index.php/Virtual_Hosting:_Name_based
 
Running two instances of a program will result in one website will run on another port for example 81.
Then you need to add :81 at the end of the address to view that website.

I know I ran a simple script years ago that checked the address the visitor used and redirected to the correct directory/website (on same webserver).
This is not the best way to do it tho.


But the best way would be to setup VHost and use only once instance and diffrent domains.
example.com = www/example
1.example.com = www/example1

You can read more about VHosts for Uniform here:
http://wiki.uniformserver.com/index.php/Virtual_Hosting:_Name_based



Thanks always appreciate your knowledge halfaway!
 
Running two instances of a program will result in one website will run on another port for example 81.
Then you need to add :81 at the end of the address to view that website.

I know I ran a simple script years ago that checked the address the visitor used and redirected to the correct directory/website (on same webserver).
This is not the best way to do it tho.


But the best way would be to setup VHost and use only once instance and diffrent domains.
example.com = www/example
1.example.com = www/example1

You can read more about VHosts for Uniform here:
http://wiki.uniformserver.com/index.php/Virtual_Hosting:_Name_based



Hey one more question, How do I arrange the www files? I'm trying to run 2 www files but cant seem to open the second one even with :81
 
Set it up as a vhost, it is relative easy: http://www.uniformserver.com/ZeroXI_documentation/apache_vhosts.html

To 'arrange' it you point the local domain, or even a real domain to the projects folder:

Code:
<VirtualHost *:80>
    ServerName something.dev
    DocumentRoot "C:\Users\username\Desktop\www"
    <Directory "C:\Users\username\Desktop\www">
        AllowOverride All
        Order Allow,Deny
        Allow from all
        Require all granted
    </Directory>
</VirtualHost>

Still ain't get it? Shoot me a pm with either your skype or teamviewer ID I'll set it up for you.
 
Are you trying to run two instances of Uniform server?
Edited the port of the second instance of the server?


I have 2 www files, both setup and compatible with my 2 servers, I can only create an account if i switch the www file between servers, (renaming one whatever and the other one www so it registers in uniserver.

I tried setting up the multiserver for uniserver but it kept changing the ports when i tried to run another.. anyway.... it wasn't working because I could not run two www files with uniserver.
 
Why are you setting up 2 web servers? That doesn't make any sense, you can set the root directory or a separate database for each site, while setting up a gateway page where the user, (user being the visitor) can choose separate sites all on the same webserver.
 
Why are you setting up 2 web servers? That doesn't make any sense, you can set the root directory or a separate database for each site, while setting up a gateway page where the user, (user being the visitor) can choose separate sites.

ohh alright! How do... ah screw it! I really should just download skype or something, would be easier for us both!
 
ohh alright! How do... ah screw it! I really should just download skype or something, would be easier for us both!

ahh ok i just made too files, now I have it like this, I can view them both!!! I just need to make a custom page now =p thanks! lmfao that was way too easy..... damn!

akg3gh.png

http://heros-ot.ddns.net/ works! awesome!
 
Made a simple splash page just for you, nothing special:
http://jsfiddle.net/HalfAway/t6fameqy/


Damn, really having some troubles with this lmao! do i make a file and use them? if so what do i call the file? I created a few but its just showing up as a code

-Inexperienced with the web lol just learned this year-

Really do appreciate everything! Got a lot further than I thought I would being just a one man team creating/experimenting ots lol!
 
You have to create the structure, try using this, save it as index.html, but read up on html & css for future reference :)
http://www.w3schools.com/html/
http://www.w3schools.com/css/default.asp
HTML:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
html {
    height: 100%;
    position: relative;
}

body {
    background: url(https://i.imgur.com/37IYT7I.png?1);
}

.container {
    width: 720px;
    margin: 0 auto;
}

.left {
    float: left;
    width: 350px;
    margin-right: 15px;
    background-color: rgba(30,27,27,0.6);
    color: #fff;
    border: 1px solid #1E1B1B;
    border-radius: 7px 7px 7px 7px;
    -moz-border-radius: 7px 7px 7px 7px;
    -webkit-border: 7px 7px 7px 7px;
}

.right {
    float: right;
       text-align: left;
    width: 350px;
    background-color: rgba(30,27,27,0.6);
    color: #fff;
    border: 1px solid #1E1B1B;
    border-radius: 7px 7px 7px 7px;
    -moz-border-radius: 7px 7px 7px 7px;
    -webkit-border: 7px 7px 7px 7px;
}

.title {
    margin: 0 auto;
    text-align: center;
    color: #FE9A2E;
    font-size: 24px;
    font-weight: bold;
}

.text {
    padding-top: 25px;
    text-align: center;
}
</style>
</head>
<body>
<div class="container">
    <div class="left">
        <div class="title">Heroes Custom</div>
        <div class="text">
            <b>Client Version:</b> 7.6<br/><br/>
            <a href="Heros Custom OT 7.6/">Enter</a>
        </div>
    </div>

    <div class="right">
        <div class="title">Heroes Real Map</div>
        <div class="text">
            <b>Client Version:</b> 10.77<br/><br/>
            <a href="Heros RL MAP 10.77/">Enter</a>
        </div>
    </div>
</div>
</body>
</html>
 
Last edited:
Back
Top