My site online nightmare

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

My site online nightmare

Postby ASTRAPI » 11. December 2007 00:49

Hi i was searching around in the forum but i can't understand very well english :(

I read about vhost but i don't know if this is the right one for my case.

I use latest xamppp for windows and is working great with my index.html page.

I justa want to put the page online.

I have a dynamic ip so i go to dyndns.com and i add a account.

I enable a dynamic dns service and now i don't know what i have to do.

My dyndns is:

test.dyndns.tv

Where i must put this and do i have to do something else for example forward a port or any other configurations?

Thanks for your time.
Thanks
ASTRAPI
 
Posts: 6
Joined: 09. December 2007 02:45

Postby KallistaAEnvarou » 11. December 2007 03:39

You'll probably have to go through a live server, such as http://bluehost.com. You'll have to pay for the hosting on this server, but it's cheap compared to what you get.
KallistaAEnvarou
 
Posts: 126
Joined: 02. December 2007 17:33
Location: Cold Cold California

Postby Izzy » 11. December 2007 04:29

Try this as you don't need to buy any hosting to get your site on the Internet using XAMPP, but having said that, it is advisable to be careful about security issues outlined in the Security menu item of the XAMPP Welcome Page - I have no difficulties serving 6 domains from my local PC to the Internet using only XAMPP with a dynamic IP and a dial-up connection.

You will need to set up this file
xampp\apache\conf\httpd-vhosts.conf

A search in the Xampp for Windows forum, Search for Author Izzy, category Apache Friends in English, using the keyword vhost or virtualhost will give many clues and a possible solution for you.

The Apache Docs. will most surely help, though somewhat technical.

http://httpd.apache.org/docs/2.3/vhosts/
http://httpd.apache.org/docs/2.3/vhosts/examples.html
http://httpd.apache.org/docs/2.3/mod/core.html


This recent post for example has a very informative discussion on creating a virtual host situation and once one domain is confirmed to operate as intended then adding more is very simple indeed, plus of course you have learned how to do it correctly.
This one also outlines a dynamic IP situation.
http://community.apachefriends.org/f/viewtopic.php?t=27069

But in the search results there are many more examples.


You would be looking at doing something like this in the xampp\apache\conf\httpd-vhosts.conf file to get what you want to do but substitute your own paths where applicable and this is only an example:
Code: Select all
NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerName test.dyndns.tv
ServerAlias www.test.dyndns.tv
DocumentRoot "C:/xampp/htdocs/yourwebsitefolder"
<Directory "C:/xampp/htdocs/yourwebsitefolder">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order Allow,deny
Allow from all
</Directory>
</VirtualHost>


This way there is no need, nor is it advisable, to change anything in the httpd.conf file from the defaults as we are taking care of all that in the httpd-vhosts.conf file.

Also because you have a dynamic IP we use the wild card IP *
You will always have to tell DynDNS every time your IP changes or no one will be able to find your server.

This link will help you set up the entries in the Windows Hosts file so others machines on your network can access your site locally if you have a local area network (LAN) setup:
Step-by-Step: How to write a HOSTS file
Also clicking on the Step by Step menu item at the above site has many more useful guides.

If you get stuck or have issues then paste them here so I can take a look at how you have done things.

Good Luck.



===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby ASTRAPI » 11. December 2007 23:51

I just add my dyndns in to my modem/router and i forward the port 80 and is working great without to edit any file.

I don't know if this is good or not...

I can view also my page from my lan adding a line in the host file :)

So Izzy all above settings that you recommend me are only for when i want to serv more than one pages?

I am learning :)
Thanks
ASTRAPI
 
Posts: 6
Joined: 09. December 2007 02:45

Postby KallistaAEnvarou » 12. December 2007 00:36

I don't know why I forgot about being able to host it from your machine.

Now, with that being said, there is a major advantage to getting paid hosting from somewhere else. They have firewalls to prevent some direct hacking attempts (actually getting inside your computer), but even then you'll still have to code against bad data cominig in. You should get a book on anti-hacking techniques. As well, I've heard that some Internet Service Providers, at least those in the US, require business accounts before you can host sites from your computer.
KallistaAEnvarou
 
Posts: 126
Joined: 02. December 2007 17:33
Location: Cold Cold California

Postby ASTRAPI » 12. December 2007 00:59

Everytime when i change my homepage i must clear the cache from my browser to view the new page is this normal?
Thanks
ASTRAPI
 
Posts: 6
Joined: 09. December 2007 02:45


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 61 guests