• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

2 website with 2 diffren ipes with 2 diffrent folders possible?

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
hey i wanna know if i can have 2 websites on my computer with 2 ip adress and how do i add that in my xampp?
So when i write ipadress.se = folder 1 and ipadress2.se = folder 2
 
Last edited:
Just do as me, cmd>ipconfig< or minip.se (swedish site always work) ;)

Goodluck Wibben
 
Yea but i dont want to make It say ipadress.se/folder1 I want it to be like ipadress.se/index.php instead of going in to the folder i just think it's messy
And ipadress2.se/index.php instead of /folder
or if you write ipadress2.se you enter the right site
 
How can i use 2 websits with 2 ips and 2 diffrent folders with out having the /folder at the end of the adress?
 
For those who don't understand what he means read this:
He want to have 2 diffrents websites like:
Panchira - The World of Epics
and
http://sss.mine.nu/

Both are different sites but they are at the same computer.

Answear:

As Keil said, use Virtual Hosts :p

First of all you need two DNS addresses (I don't think it's possible to get two global ip:s to the same network, so I would use DNS-Address)

Continue to read if you have Uniserver, if not then, wait until someone else answer :D

In your UniServer folder go to-> usr/local/apache2/conf/httpd.conf

Open that file ofc :D
Scroll down until you are at the end of the code

You should see something like this:
Code:
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
#    ServerAdmin [email protected]
#    DocumentRoot D:/UniServer/www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>


NameVirtualHost *

#====== DEFAULT VIRTUAL HOST ===========
# LOCALHOST

after this add following:

Code:
<VirtualHost *>
	ServerName panchira.mine.nu
	DocumentRoot D:/UniServer/www
</VirtualHost>

<VirtualHost *>
	ServerName sss.mine.nu
	DocumentRoot D:/UniServer/www2
</VirtualHost>

Change the ServerName and DocumentRoot to your own
 
im not using uniserver... But the same file exist but cant find the Rows you are showing
Nvm i foind it:) Thanks dude:D
 
Back
Top