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

xampp question

Inteligentny

Im not.
Joined
Aug 2, 2008
Messages
485
Reaction score
0
hello, I got question how to do in xampp something like this: (I dont know english enough to write exacly what I want so I will give simply example)

The main IP is otsoftland.com
(its just example)

And I want to this domain connect with my folder in xampp which is called "pvp"

So all I want is: After type in internet browser: otsoftland.com and press enter it shall move user to otsoftland.com/pvp

Its something with Virtualhost in xampp I guess... but dont know more :< anyone could give some info?
 
I think you can just put the DNS redirects of your domain to <yourip>/pvp


You can try what christian said, but i think that Folder is gonna appear when the browser redirects the people so it will appear <yourdomain.com/pvp>..

I recommend you to go your xampp folder

Open apache folder > conf > httpd > notepad or your favorite text editor and search for this following lines:

# DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "C:/xampp/htdocs"
<- Change That for pvp :)


after changing that one then go to this lines they are a little bit down the previous i said:
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/xampp/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews

Change the ROOT folder to pvp again.. And done thoug. good luck!


So you just have to type:
<yourdomain>.com And Done it redirects you to your file :P
 
Hm ok thanks, first one is not working because it can't be done in DNS redirects
"/pvp" isnt IP, that what is saying there.


second one: but for example I have two folders in htdocs

first one "pvp"
and other "non-pvp"

How to do that people who is connecting with ip:
Code:
www.pvp.com
will be redirected to
Code:
www.pvp.com/pvp
and people who typed
Code:
www.non-pvp.com
will be redirected to
Code:
www.non-pvp.com/non-pvp


Is it even possible?
Thanks again for anserwers
 
i know its possible 'cause i've seen it, You tried it :/? dont know what does not work, mine work :(..

and it doesnt change the DNS it just changes your root folder to your htdocs . but.. For 2 i dont know what to do..
 
Ye with one its working, but I need it for two domains, must redirect for two folders... I think its possible but dont know how :P maybe someone else will help :)
 
dont known a lot about xamp but at linux in apache there something like virtualhosts
that is example that i use
PHP:
<VirtualHost IP_adress:80>
     <Directory "/var/www/aac">
         Options FollowSymLinks
        AllowOverride All
     </Directory>
 
Back
Top