Using XAMPP as my online server ?

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Using XAMPP as my online server ?

Postby didli » 23. April 2009 20:16

Hi all of you !
I'm trying, apparently with no success so far, to create a mini web server using XAMPP that I can reach online (something like http://med****.h****.com). The main idea was to keep http://localhost for websites testing purpose (oh man how much I love XAMPP ;) while having at the same time a mini web server running from my hard drive and accessible online for my friends. It seems I'm close to get that to work, but I've got a problem :
http://localhost launch the XAMPP homepage, that's fine.
http://med****.h****.com also launch the XAMPP homepage, that's not fine and I don't know why it keeps redirecting to the XAMPP home !
Here what I tried to get there :
- I configure the file /etc/hosts and add 192.168.1.110 med****.ho**.com #my dyndns ip
- Installed ddclient in Ubuntu (my current OS) and configure it to point to my dyndns config
- then configured httpd-vhosts.conf like this (that's the part I'm not really confident) :
Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
       DocumentRoot /opt/lampp/htdocs
       ServerName localhost:80
       ServerAdmin admin@localhost
</VirtualHost>

<VirtualHost 192.168.1.110:80>
   DocumentRoot   /opt/lampp/htdocs/mediaklan
   ServerName   med****.ho**.com
</VirtualHost>

- And finally, redirect the port 80 from the router to 192.168.1.110.

For now, med****.ho**.com keeps redirecting me to XAMPP homepage. Do you have any idea what I'm doing wrong ?
Maybe I forget something important ?
I will be very thankful for your help, thanks in advance !
didli
 
Posts: 1
Joined: 10. April 2009 20:53

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 77 guests