Vhost Set up??

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

Vhost Set up??

Postby shaunycash » 26. July 2010 16:10

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: http://70.83.228.119/ 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.

C:\Windows\System32\drivers\etc\hosts.txt
Code: Select all
127.0.0.1       localhost

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


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.
#
ServerName 70.83.228.119:80

There my module set up.
Code: Select all
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
##LoadModule autoindex_module modules/mod_autoindex.so # replaced with autoindex_color_module
#LoadModule bucketeer_module modules/mod_bucketeer.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule case_filter_module modules/mod_case_filter.so
#LoadModule case_filter_in_module modules/mod_case_filter_in.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule charset_lite_module modules/mod_charset_lite.so
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_lock_module modules/mod_dav_lock.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
#LoadModule disk_cache_module modules/mod_disk_cache.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule echo_module modules/mod_echo.so
LoadModule env_module modules/mod_env.so
#LoadModule example_module modules/mod_example.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule filter_module modules/mod_filter.so
LoadModule headers_module modules/mod_headers.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
#LoadModule ldap_module modules/mod_ldap.so
#LoadModule logio_module modules/mod_logio.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule status_module modules/mod_status.so
#LoadModule substitute_module modules/mod_substitute.so
#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule version_module modules/mod_version.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so

#
# 3rd party modules
#
LoadModule autoindex_color_module modules/mod_autoindex_color.so

<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>

If you see something wrong tell me what is wrong.

Thank you for your futur awnser.
shaunycash
 
Posts: 2
Joined: 26. July 2010 15:26

Re: Vhost Set up??

Postby JonB » 26. July 2010 18:30

You don't need or want this:
192.168.0.140 70.83.228.119

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:

ServerName 70.83.228.119:80

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
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Vhost Set up??

Postby shaunycash » 26. July 2010 19:30

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 (70.83.228.1)then 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.
shaunycash
 
Posts: 2
Joined: 26. July 2010 15:26


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 154 guests