Page 1 of 1

Vhost Set up??

PostPosted: 26. July 2010 16:10
by shaunycash
Hi, there is a big Issue since 3 days I google trying to find a way to open up my server to my friends (external network) and nothing work.
I found a lot of people whos use it in localhost and setup their domain and fake domain which is use less a fake domain but nothing about the set up when you whant to use your external network ip as your website adress example: this is what I whant to do.
I am running on window XP SP3 behind a rooter and yes, all port got fowarded to my lan ip.
So now I will start back the set up from a scratch because nothing was working the acces was availlable in Lan and not from the external network like I desired.
The server will be used to the developpement of a few project befor we buy an hosting plan and domain.
I am using Xampp 1.7.3 for window.

Code: Select all       localhost

I wonder if I have to add:
Code: Select all

httpd-vhosts.conf is set back to the default so no Virtual host has been add & set I whant to use the file "D:\xampp\htdocs" as my document root.

My httpd.conf
I always wonder if its my network ip or lan ip have to put in.
Code: Select all
# If your host doesn't have a registered DNS name, enter its IP address here.

There my module set up.
Code: Select all
# Example:
# LoadModule foo_module modules/
LoadModule actions_module modules/
LoadModule alias_module modules/
LoadModule asis_module modules/
LoadModule auth_basic_module modules/
LoadModule auth_digest_module modules/
#LoadModule authn_alias_module modules/
#LoadModule authn_anon_module modules/
#LoadModule authn_dbd_module modules/
#LoadModule authn_dbm_module modules/
LoadModule authn_default_module modules/
LoadModule authn_file_module modules/
#LoadModule authnz_ldap_module modules/
#LoadModule authz_dbm_module modules/
LoadModule authz_default_module modules/
LoadModule authz_groupfile_module modules/
LoadModule authz_host_module modules/
#LoadModule authz_owner_module modules/
LoadModule authz_user_module modules/
##LoadModule autoindex_module modules/ # replaced with autoindex_color_module
#LoadModule bucketeer_module modules/
#LoadModule cache_module modules/
#LoadModule case_filter_module modules/
#LoadModule case_filter_in_module modules/
#LoadModule cern_meta_module modules/
LoadModule cgi_module modules/
#LoadModule charset_lite_module modules/
LoadModule dav_module modules/
LoadModule dav_fs_module modules/
LoadModule dav_lock_module modules/
#LoadModule dbd_module modules/
#LoadModule deflate_module modules/
LoadModule dir_module modules/
#LoadModule disk_cache_module modules/
#LoadModule dumpio_module modules/
#LoadModule echo_module modules/
LoadModule env_module modules/
#LoadModule example_module modules/
#LoadModule expires_module modules/
#LoadModule ext_filter_module modules/
#LoadModule file_cache_module modules/
#LoadModule filter_module modules/
LoadModule headers_module modules/
#LoadModule ident_module modules/
#LoadModule imagemap_module modules/
LoadModule include_module modules/
LoadModule info_module modules/
LoadModule isapi_module modules/
#LoadModule ldap_module modules/
#LoadModule logio_module modules/
LoadModule log_config_module modules/
#LoadModule log_forensic_module modules/
#LoadModule mem_cache_module modules/
LoadModule mime_module modules/
#LoadModule mime_magic_module modules/
LoadModule negotiation_module modules/
#LoadModule proxy_module modules/
#LoadModule proxy_ajp_module modules/
#LoadModule proxy_balancer_module modules/
#LoadModule proxy_connect_module modules/
#LoadModule proxy_ftp_module modules/
#LoadModule proxy_http_module modules/
LoadModule rewrite_module modules/
LoadModule setenvif_module modules/
#LoadModule speling_module modules/
LoadModule ssl_module modules/
LoadModule status_module modules/
#LoadModule substitute_module modules/
#LoadModule unique_id_module modules/
#LoadModule userdir_module modules/
#LoadModule usertrack_module modules/
#LoadModule version_module modules/
#LoadModule vhost_alias_module modules/

# 3rd party modules
LoadModule autoindex_color_module modules/

<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>

If you see something wrong tell me what is wrong.

Thank you for your futur awnser.

Re: Vhost Set up??

PostPosted: 26. July 2010 18:30
by JonB
You don't need or want this:

The only use the hosts file has is to add DNS entries to the 'top' of the DNS cache, so they will be read first, or in preference to any external DNS resolvers. So the entries are always in the form of 'hostname (space) numeric IPv4 or IPv6 address'.

you don't need the :80 here:


as long as the 'Listen 80' directive is present in the httpd.conf. The external IP is the correct value to use.

What happened when you entered the numeric IP of your router in a browser that was NOT on your network?
(Some routers do not have NAT loopback - which means you can't enter the external IP address & be able to see your site while on your network, - so you should always rely on a thrid party -- not on your network -- to check)

I don't think anything in the module setup (unless you chaged things) should make a difference in whether or not external clients can 'see' your server.

Good Luck

Re: Vhost Set up??

PostPosted: 26. July 2010 19:30
by shaunycash
I dont even know what you mean by numeric IP but I got a rooter D-link DI-704 Cable/DSL.
If the numeric IP is Gateway IP ( can't gain access to it from an other network.
I forgot to say all my port in the firewall are open for the server same as the rooter.
I found the source of the probleme this is my ISP whos block the port MYSQL,pop,imap,ftp,ect...
So this mean I will have to set some custom port for each acces I need but how to do it?
I mostly need to change apache, mysql, ftp port to custom port.
It will take me a few hours to do it.