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

Virtual host xampp problem with second website! dont want /foldername

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
Hey im using virtual host on xampp
And i have 2 websites but the second website is getting redirected to the first one how come?

Virutal host:
Code:
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
##NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "C:/xampp/htdocs/Syphero"
    ServerName syphero.mine.nu
    ServerAlias Syphero High 24/7
    ##ErrorLog "logs/dummy-host.localhost-error.log"
    ##CustomLog "logs/dummy-host.localhost-access.log" combined
</VirtualHost>

<VirtualHost *:81>
    ServerAdmin [email protected]
    DocumentRoot "C:/xampp/htdocs/maxoria"
    ServerName maxoria.no-ip.org/
    ServerAlias Maxoria 24/7
    ##ErrorLog "logs/dummy-host2.localhost-error.log"
    ##CustomLog "logs/dummy-host2.localhost-access.log" combined
</VirtualHost>
 
Last edited:
I am not 100% sure, but, when using a diffrent port than 80 in browsers, u have to put "maxoria.no-ip.org:81" to get connected
edit:
Just tried, and it didn't work either :/

edit2:
Another note, Did you open port 81? :p
 
tryd that already... any more ideas? or can you connect with that ip plus port?
Edit:Yes port 81 is open:)
 
Last edited:
Well what do it have todo with server alias? dose it even matter if they cant connect or not?
Becouse if you write that ip you get to syphero not maxoria...

Edit: now i get ipadress: http://syphero.mine.nu/syphero/ Instead of syphero.mine.nu
i get /syphero on the end same with maxoria
i changed to this:
Code:
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
##NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost syphero.mine.nu:80>
    ServerAdmin [email protected]
    DocumentRoot "C:\xampp\htdocs\syphero"
    ServerName syphero.mine.nu
    ServerAlias www.syphero.mine.nu
    ##ErrorLog "logs/dummy-host.localhost-error.log"
    ##CustomLog "logs/dummy-host.localhost-access.log" combined
</VirtualHost>

<VirtualHost maxoria.no-ip.org:81>
    ServerAdmin [email protected]
    DocumentRoot "C:\xampp\htdocs\maxoria"
    ServerName maxoria.no-ip.org
    ServerAlias www.maxoria.no-ip.org
    ##ErrorLog "logs/dummy-host.localhost-error.log"
    ##CustomLog "logs/dummy-host.localhost-access.log" combined
</VirtualHost>

Edit: maxoria.no-ip.org = syphero.mine.nu so same ipadress dose that even matter?
 
Last edited:
bump i need help to get 2 websit working with 2 diffrent ip adress that relocate you to 2 diffrent folders with out the /foldername So it will be like syphero.mine.nu instead of syphero.mine.nu/syphero And same with the other DNS also
Can any one help me?
 
Back
Top