Fowarding to a Virtual Host
Posted by: wakafanykai123 (165.248.218.---)
Date: November 07, 2014 01:12AM

I need to have my website url that i forward via FreeDNS go to a website that is a wordpress website on my apache server.
However, FreeDNS does not support fowarding to a path on the webserver.
I have tried using a virtual host in this form
#<VirtualHost *:80>
    ServerAdmin admin@computerproblems.info.tm
    DocumentRoot "C:/wamp/www/wordpress/"
    ServerName computerproblems.info.tm
    ServerAlias computerproblems.info.tm
#</VirtualHost>
But the website rejects it whenever i try to click a link.
Does anyone have any solutions to this problem?

Options: ReplyQuote
Re: Fowarding to a Virtual Host
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: November 07, 2014 10:00AM

Hi wakafanyKai,

Yes,

your Virtual Host definition is not complete.

You now need to tell Apache who is allowed to access your VH site.

Like this for example :-


If you are using Apache 2.4.x

<VirtualHost *:80>
     ServerAdmin admin@computerproblems.info.tm

     DocumentRoot "C:/wamp/www/wordpress"

     ServerName computerproblems.info.tm
     ServerAlias www.computerproblems.info.tm

    <Directory "C:/wamp/www/wordpress">
        AllowOverride All
        Options Indexes FollowSymLinks
        Require all granted
    </Directory>
</VirtualHost>


If you are using Apache 2.2.x

<VirtualHost *:80>
     ServerAdmin admin@computerproblems.info.tm

     DocumentRoot "C:/wamp/www/wordpress"

     ServerName computerproblems.info.tm
     ServerAlias www.computerproblems.info.tm

    <Directory "C:/wamp/www/wordpress">
        AllowOverride All
        Options Indexes FollowSymLinks
        Order Allow,Deny
        Allow from all
    </Directory>
</VirtualHost>

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Fowarding to a Virtual Host
Posted by: tuxor (---.prod-infinitum.com.mx)
Date: December 09, 2014 09:38PM

Hi, I did all yo said here to create a virtual host, but when i go to my project url, example ejemplo.pv, at the end of the pat appears "\" like this ejemplo.pv\ and i can't see the index.php because the \ appears automatically. How can I fix it?

thank you.

Options: ReplyQuote


Sorry, only registered users may post in this forum.