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

Windows problem trying to go to xampp/security folder in browser

johnsamir

Advanced OT User
Joined
Oct 13, 2009
Messages
1,126
Solutions
6
Reaction score
199
Location
Nowhere
Have multiple websites in diferent folders with diferent domain, som have ssl others not. the thing is that when i want to go to xampp/secutiry in the browser im being redirected to the website that is located in htdocs folder

i have added this at httpd-vhosts.conf
Lua:
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot "C:/xampp/htdocs"
    ServerName localhost
    ServerAlias localhost
    <Directory "C:/xampp/htdocs">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
    <Directory "C:/xampp/htdocs/security">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot "C:/xampp/htdocs"
    ServerName 127.0.0.1
    ServerAlias 127.0.0.1
    <Directory "C:/xampp/htdocs">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
    <Directory "C:/xampp/htdocs/security">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>


<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "C:/xampp/htdocs"
    ServerName forgotenot.online
    ServerAlias *.forgotenot.online
    <Directory "C:/xampp/htdocs">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

 <VirtualHost *:443>
     DocumentRoot "C:/xampp/htdocs"
     ServerName forgottennot.online
     ServerAlias *.forgottennot.online
     SSLEngine on
    SSLCertificateFile "conf/ssl/certificate.crt"
    SSLCertificateKeyFile "conf/ssl/private.key"
 </VirtualHost>

 <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "C:/xampp/htdocs"
    ServerName forgottennot.ddns.net
    ServerAlias *.forgottennot.ddns.net
    <Directory "C:/xampp/htdocs1">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

 <VirtualHost *:443>
     DocumentRoot "C:/xampp/htdocs"
     ServerName forgottennot.ddns.net
     ServerAlias *.forgottennot.ddns.net
     SSLEngine on
    SSLCertificateFile "conf/ssl2/certificate.crt"
    SSLCertificateKeyFile "conf/ssl2/private.key"
 </VirtualHost>


 <VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs2/bagisto/public"
ServerName puntoparalelo.ddns.net
ServerAlias www.puntoparalelo.ddns.net
    <Directory "C:/xampp/htdocs2/bagisto/public">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

##ESTA ES TEST
<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs3"
    ServerName testingx.ddns.net
    <Directory "C:/xampp/htdocs3">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>
can somebody give me another idea about hwo to fix this? if i go to http://127.0.0.1/phpmyadmin/ or http://localhostphpmyadmin/
i don't have any problem reviewing the content in browser this is strange
 
Make sure that your hosts file is correct. That's always an oversight that people tend to forget about or lose track of.

C:\Windows\System32\drivers\etc\hosts
Code:
127.0.0.1       localhost
127.0.0.1       forgottennot.online
127.0.0.1       forgottennot.ddns.net
127.0.0.1       puntoparalelo.ddns.net
127.0.0.1       testingx.ddns.net

Also, your virtual host is pointing to C:/xampp/htdocs multiple times, make sure they're pointing to the correct directories.

Here's an updated version of your httpd-vhosts.conf:
Code:
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot "C:/xampp/htdocs"
    ServerName localhost
    <Directory "C:/xampp/htdocs">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot "C:/xampp/htdocs"
    ServerName 127.0.0.1
    <Directory "C:/xampp/htdocs">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "C:/xampp/htdocs/forgotenot"
    ServerName forgotenot.online
    ServerAlias *.forgotenot.online
    <Directory "C:/xampp/htdocs/forgotenot">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:443>
    ServerAdmin [email protected]
    DocumentRoot "C:/xampp/htdocs/forgotenot"
    ServerName forgottennot.online
    ServerAlias *.forgottennot.online
    SSLEngine on
    SSLCertificateFile "conf/ssl/certificate.crt"
    SSLCertificateKeyFile "conf/ssl/private.key"
    <Directory "C:/xampp/htdocs/forgotenot">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "C:/xampp/htdocs1"
    ServerName forgottennot.ddns.net
    ServerAlias *.forgottennot.ddns.net
    <Directory "C:/xampp/htdocs1">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:443>
    ServerAdmin [email protected]
    DocumentRoot "C:/xampp/htdocs1"
    ServerName forgottennot.ddns.net
    ServerAlias *.forgottennot.ddns.net
    SSLEngine on
    SSLCertificateFile "conf/ssl2/certificate.crt"
    SSLCertificateKeyFile "conf/ssl2/private.key"
    <Directory "C:/xampp/htdocs1">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs2/bagisto/public"
    ServerName puntoparalelo.ddns.net
    ServerAlias www.puntoparalelo.ddns.net
    <Directory "C:/xampp/htdocs2/bagisto/public">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs3"
    ServerName testingx.ddns.net
    <Directory "C:/xampp/htdocs3">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

Restart Apache and test it out. You may also need to clear your browser cache after restarting.

Hope this resolves your issue.
 
Last edited:
Back
Top