473,320 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Apache 2.2 VirtualHosts not working on Windows Vista

I've searched, I've read, I've tested and re-read numerous post but to no avail yet...

Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not work. Please review my work and let me know if you see that one little thing that is throwing me for a loop.

HTTPD.CONF

Expand|Select|Wrap|Line Numbers
  1. #
  2. # This is the main Apache HTTP server configuration file.  It contains the
  3. # configuration directives that give the server its instructions.
  4. # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
  5. # In particular, see
  6. # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
  7. # for a discussion of each configuration directive.
  8. #
  9. # Do NOT simply read the instructions in here without understanding
  10. # what they do.  They're here only as hints or reminders.  If you are unsure
  11. # consult the online docs. You have been warned.
  12. #
  13. # Configuration and logfile names: If the filenames you specify for many
  14. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  15. # server will use that explicit path.  If the filenames do *not* begin
  16. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  17. # with ServerRoot set to "C:/Program Files/Apache Software Foundation/Apache2.2" will be interpreted by the
  18. # server as "C:/Program Files/Apache Software Foundation/Apache2.2/logs/foo.log".
  19. #
  20. # NOTE: Where filenames are specified, you must use forward slashes
  21. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  22. # If a drive letter is omitted, the drive on which httpd.exe is located
  23. # will be used by default.  It is recommended that you always supply
  24. # an explicit drive letter in absolute paths to avoid confusion.
  25.  
  26. #
  27. # ServerRoot: The top of the directory tree under which the server's
  28. # configuration, error, and log files are kept.
  29. #
  30. # Do not add a slash at the end of the directory path.  If you point
  31. # ServerRoot at a non-local disk, be sure to point the LockFile directive
  32. # at a local disk.  If you wish to share the same ServerRoot for multiple
  33. # httpd daemons, you will need to change at least LockFile and PidFile.
  34. #
  35. ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2"
  36.  
  37. #
  38. # Listen: Allows you to bind Apache to specific IP addresses and/or
  39. # ports, instead of the default. See also the <VirtualHost>
  40. # directive.
  41. #
  42. # Change this to Listen on specific IP addresses as shown below to
  43. # prevent Apache from glomming onto all bound IP addresses.
  44. #
  45. #Listen 12.34.56.78:80
  46. Listen 8080
  47.  
  48. #
  49. # Dynamic Shared Object (DSO) Support
  50. #
  51. # To be able to use the functionality of a module which was built as a DSO you
  52. # have to place corresponding `LoadModule' lines at this location so the
  53. # directives contained in it are actually available _before_ they are used.
  54. # Statically compiled modules (those listed by `httpd -l') do not need
  55. # to be loaded here.
  56. #
  57. # Example:
  58. # LoadModule foo_module modules/mod_foo.so
  59. #
  60. LoadModule actions_module modules/mod_actions.so
  61. LoadModule alias_module modules/mod_alias.so
  62. LoadModule asis_module modules/mod_asis.so
  63. LoadModule auth_basic_module modules/mod_auth_basic.so
  64. #LoadModule auth_digest_module modules/mod_auth_digest.so
  65. #LoadModule authn_alias_module modules/mod_authn_alias.so
  66. #LoadModule authn_anon_module modules/mod_authn_anon.so
  67. #LoadModule authn_dbd_module modules/mod_authn_dbd.so
  68. #LoadModule authn_dbm_module modules/mod_authn_dbm.so
  69. LoadModule authn_default_module modules/mod_authn_default.so
  70. LoadModule authn_file_module modules/mod_authn_file.so
  71. #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
  72. #LoadModule authz_dbm_module modules/mod_authz_dbm.so
  73. LoadModule authz_default_module modules/mod_authz_default.so
  74. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  75. LoadModule authz_host_module modules/mod_authz_host.so
  76. #LoadModule authz_owner_module modules/mod_authz_owner.so
  77. LoadModule authz_user_module modules/mod_authz_user.so
  78. LoadModule autoindex_module modules/mod_autoindex.so
  79. #LoadModule cache_module modules/mod_cache.so
  80. #LoadModule cern_meta_module modules/mod_cern_meta.so
  81. LoadModule cgi_module modules/mod_cgi.so
  82. #LoadModule charset_lite_module modules/mod_charset_lite.so
  83. #LoadModule dav_module modules/mod_dav.so
  84. #LoadModule dav_fs_module modules/mod_dav_fs.so
  85. #LoadModule dav_lock_module modules/mod_dav_lock.so
  86. #LoadModule dbd_module modules/mod_dbd.so
  87. #LoadModule deflate_module modules/mod_deflate.so
  88. LoadModule dir_module modules/mod_dir.so
  89. #LoadModule disk_cache_module modules/mod_disk_cache.so
  90. #LoadModule dumpio_module modules/mod_dumpio.so
  91. LoadModule env_module modules/mod_env.so
  92. #LoadModule expires_module modules/mod_expires.so
  93. #LoadModule ext_filter_module modules/mod_ext_filter.so
  94. #LoadModule file_cache_module modules/mod_file_cache.so
  95. #LoadModule filter_module modules/mod_filter.so
  96. #LoadModule headers_module modules/mod_headers.so
  97. #LoadModule ident_module modules/mod_ident.so
  98. #LoadModule imagemap_module modules/mod_imagemap.so
  99. LoadModule include_module modules/mod_include.so
  100. #LoadModule info_module modules/mod_info.so
  101. LoadModule isapi_module modules/mod_isapi.so
  102. #LoadModule ldap_module modules/mod_ldap.so
  103. #LoadModule logio_module modules/mod_logio.so
  104. LoadModule log_config_module modules/mod_log_config.so
  105. #LoadModule log_forensic_module modules/mod_log_forensic.so
  106. #LoadModule mem_cache_module modules/mod_mem_cache.so
  107. LoadModule mime_module modules/mod_mime.so
  108. #LoadModule mime_magic_module modules/mod_mime_magic.so
  109. LoadModule negotiation_module modules/mod_negotiation.so
  110. #LoadModule proxy_module modules/mod_proxy.so
  111. #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  112. #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  113. #LoadModule proxy_connect_module modules/mod_proxy_connect.so
  114. #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  115. #LoadModule proxy_http_module modules/mod_proxy_http.so
  116. #LoadModule rewrite_module modules/mod_rewrite.so
  117. LoadModule setenvif_module modules/mod_setenvif.so
  118. #LoadModule speling_module modules/mod_speling.so
  119. #LoadModule ssl_module modules/mod_ssl.so
  120. #LoadModule status_module modules/mod_status.so
  121. #LoadModule substitute_module modules/mod_substitute.so
  122. #LoadModule unique_id_module modules/mod_unique_id.so
  123. #LoadModule userdir_module modules/mod_userdir.so
  124. #LoadModule usertrack_module modules/mod_usertrack.so
  125. #LoadModule version_module modules/mod_version.so
  126. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
  127.  
  128. <IfModule !mpm_netware_module>
  129. <IfModule !mpm_winnt_module>
  130. #
  131. # If you wish httpd to run as a different user or group, you must run
  132. # httpd as root initially and it will switch.
  133. #
  134. # User/Group: The name (or #number) of the user/group to run httpd as.
  135. # It is usually good practice to create a dedicated user and group for
  136. # running httpd, as with most system services.
  137. #
  138. User daemon
  139. Group daemon
  140.  
  141. </IfModule>
  142. </IfModule>
  143.  
  144. # 'Main' server configuration
  145. #
  146. # The directives in this section set up the values used by the 'main'
  147. # server, which responds to any requests that aren't handled by a
  148. # <VirtualHost> definition.  These values also provide defaults for
  149. # any <VirtualHost> containers you may define later in the file.
  150. #
  151. # All of these directives may appear inside <VirtualHost> containers,
  152. # in which case these default settings will be overridden for the
  153. # virtual host being defined.
  154. #
  155.  
  156. #
  157. # ServerAdmin: Your address, where problems with the server should be
  158. # e-mailed.  This address appears on some server-generated pages, such
  159. # as error documents.  e.g. admin@your-domain.com
  160. #
  161. ServerAdmin jose.quinonesii@gmail.com
  162.  
  163. #
  164. # ServerName gives the name and port that the server uses to identify itself.
  165. # This can often be determined automatically, but we recommend you specify
  166. # it explicitly to prevent problems during startup.
  167. #
  168. # If your host doesn't have a registered DNS name, enter its IP address here.
  169. #
  170. #ServerName jquinones-xps:8080
  171.  
  172. #
  173. # DocumentRoot: The directory out of which you will serve your
  174. # documents. By default, all requests are taken from this directory, but
  175. # symbolic links and aliases may be used to point to other locations.
  176. #
  177. DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
  178.  
  179. #
  180. # Each directory to which Apache has access can be configured with respect
  181. # to which services and features are allowed and/or disabled in that
  182. # directory (and its subdirectories).
  183. #
  184. # First, we configure the "default" to be a very restrictive set of
  185. # features.
  186. #
  187. <Directory />
  188.     Options FollowSymLinks
  189.     AllowOverride None
  190.     Order deny,allow
  191.     Deny from all
  192. </Directory>
  193.  
  194.  
  195. #
  196. # Note that from this point forward you must specifically allow
  197. # particular features to be enabled - so if something's not working as
  198. # you might expect, make sure that you have specifically enabled it
  199. # below.
  200. #
  201.  
  202. #
  203. # This should be changed to whatever you set DocumentRoot to.
  204. #
  205. <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">
  206.     #
  207.     # Possible values for the Options directive are "None", "All",
  208.     # or any combination of:
  209.     #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  210.     #
  211.     # Note that "MultiViews" must be named *explicitly* --- "Options All"
  212.     # doesn't give it to you.
  213.     #
  214.     # The Options directive is both complicated and important.  Please see
  215.     # http://httpd.apache.org/docs/2.2/mod/core.html#options
  216.     # for more information.
  217.     #
  218.     Options Indexes FollowSymLinks
  219.  
  220.     #
  221.     # AllowOverride controls what directives may be placed in .htaccess files.
  222.     # It can be "All", "None", or any combination of the keywords:
  223.     #   Options FileInfo AuthConfig Limit
  224.     #
  225.     AllowOverride None
  226.  
  227.     #
  228.     # Controls who can get stuff from this server.
  229.     #
  230.     Order allow,deny
  231.     Allow from all
  232.  
  233. </Directory>
  234.  
  235. <Directory C:/Users/josequinonesii/Websites>
  236.   Options Indexes FollowSymLinks
  237.   AllowOverride None
  238.   Order Deny,Allow
  239.   Allow from all
  240. </Directory>
  241.  
  242. #
  243. # DirectoryIndex: sets the file that Apache will serve if a directory
  244. # is requested.
  245. #
  246. <IfModule dir_module>
  247.     DirectoryIndex index.html
  248. </IfModule>
  249.  
  250. #
  251. # The following lines prevent .htaccess and .htpasswd files from being
  252. # viewed by Web clients.
  253. #
  254. <FilesMatch "^\.ht">
  255.     Order allow,deny
  256.     Deny from all
  257.     Satisfy All
  258. </FilesMatch>
  259.  
  260. #
  261. # ErrorLog: The location of the error log file.
  262. # If you do not specify an ErrorLog directive within a <VirtualHost>
  263. # container, error messages relating to that virtual host will be
  264. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  265. # container, that host's errors will be logged there and not here.
  266. #
  267. ErrorLog "logs/error.log"
  268.  
  269. #
  270. # LogLevel: Control the number of messages logged to the error_log.
  271. # Possible values include: debug, info, notice, warn, error, crit,
  272. # alert, emerg.
  273. #
  274. LogLevel warn
  275.  
  276. <IfModule log_config_module>
  277.     #
  278.     # The following directives define some format nicknames for use with
  279.     # a CustomLog directive (see below).
  280.     #
  281.     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  282.     LogFormat "%h %l %u %t \"%r\" %>s %b" common
  283.  
  284.     <IfModule logio_module>
  285.       # You need to enable mod_logio.c to use %I and %O
  286.       LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  287.     </IfModule>
  288.  
  289.     #
  290.     # The location and format of the access logfile (Common Logfile Format).
  291.     # If you do not define any access logfiles within a <VirtualHost>
  292.     # container, they will be logged here.  Contrariwise, if you *do*
  293.     # define per-<VirtualHost> access logfiles, transactions will be
  294.     # logged therein and *not* in this file.
  295.     #
  296.     CustomLog "logs/access.log" common
  297.  
  298.     #
  299.     # If you prefer a logfile with access, agent, and referer information
  300.     # (Combined Logfile Format) you can use the following directive.
  301.     #
  302.     #CustomLog "logs/access.log" combined
  303. </IfModule>
  304.  
  305. <IfModule alias_module>
  306.     #
  307.     # Redirect: Allows you to tell clients about documents that used to
  308.     # exist in your server's namespace, but do not anymore. The client
  309.     # will make a new request for the document at its new location.
  310.     # Example:
  311.     # Redirect permanent /foo http://jquinones-xps/bar
  312.  
  313.     #
  314.     # Alias: Maps web paths into filesystem paths and is used to
  315.     # access content that does not live under the DocumentRoot.
  316.     # Example:
  317.     # Alias /webpath /full/filesystem/path
  318.     #
  319.     # If you include a trailing / on /webpath then the server will
  320.     # require it to be present in the URL.  You will also likely
  321.     # need to provide a <Directory> section to allow access to
  322.     # the filesystem path.
  323.  
  324.     #
  325.     # ScriptAlias: This controls which directories contain server scripts.
  326.     # ScriptAliases are essentially the same as Aliases, except that
  327.     # documents in the target directory are treated as applications and
  328.     # run by the server when requested rather than as documents sent to the
  329.     # client.  The same rules about trailing "/" apply to ScriptAlias
  330.     # directives as to Alias.
  331.     #
  332.     ScriptAlias /cgi-bin/ "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/"
  333.  
  334. </IfModule>
  335.  
  336. <IfModule cgid_module>
  337.     #
  338.     # ScriptSock: On threaded servers, designate the path to the UNIX
  339.     # socket used to communicate with the CGI daemon of mod_cgid.
  340.     #
  341.     #Scriptsock logs/cgisock
  342. </IfModule>
  343.  
  344. #
  345. # "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin" should be changed to whatever your ScriptAliased
  346. # CGI directory exists, if you have that configured.
  347. #
  348. <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
  349.     AllowOverride None
  350.     Options None
  351.     Order allow,deny
  352.     Allow from all
  353. </Directory>
  354.  
  355. #
  356. # DefaultType: the default MIME type the server will use for a document
  357. # if it cannot otherwise determine one, such as from filename extensions.
  358. # If your server contains mostly text or HTML documents, "text/plain" is
  359. # a good value.  If most of your content is binary, such as applications
  360. # or images, you may want to use "application/octet-stream" instead to
  361. # keep browsers from trying to display binary files as though they are
  362. # text.
  363. #
  364. DefaultType text/plain
  365.  
  366. <IfModule mime_module>
  367.     #
  368.     # TypesConfig points to the file containing the list of mappings from
  369.     # filename extension to MIME-type.
  370.     #
  371.     TypesConfig conf/mime.types
  372.  
  373.     #
  374.     # AddType allows you to add to or override the MIME configuration
  375.     # file specified in TypesConfig for specific file types.
  376.     #
  377.     #AddType application/x-gzip .tgz
  378.     #
  379.     # AddEncoding allows you to have certain browsers uncompress
  380.     # information on the fly. Note: Not all browsers support this.
  381.     #
  382.     #AddEncoding x-compress .Z
  383.     #AddEncoding x-gzip .gz .tgz
  384.     #
  385.     # If the AddEncoding directives above are commented-out, then you
  386.     # probably should define those extensions to indicate media types:
  387.     #
  388.     AddType application/x-compress .Z
  389.     AddType application/x-gzip .gz .tgz
  390.  
  391.     #
  392.     # AddHandler allows you to map certain file extensions to "handlers":
  393.     # actions unrelated to filetype. These can be either built into the server
  394.     # or added with the Action directive (see below)
  395.     #
  396.     # To use CGI scripts outside of ScriptAliased directories:
  397.     # (You will also need to add "ExecCGI" to the "Options" directive.)
  398.     #
  399.     #AddHandler cgi-script .cgi
  400.  
  401.     # For type maps (negotiated resources):
  402.     #AddHandler type-map var
  403.  
  404.     #
  405.     # Filters allow you to process content before it is sent to the client.
  406.     #
  407.     # To parse .shtml files for server-side includes (SSI):
  408.     # (You will also need to add "Includes" to the "Options" directive.)
  409.     #
  410.     #AddType text/html .shtml
  411.     #AddOutputFilter INCLUDES .shtml
  412. </IfModule>
  413.  
  414. #
  415. # The mod_mime_magic module allows the server to use various hints from the
  416. # contents of the file itself to determine its type.  The MIMEMagicFile
  417. # directive tells the module where the hint definitions are located.
  418. #
  419. #MIMEMagicFile conf/magic
  420.  
  421. #
  422. # Customizable error responses come in three flavors:
  423. # 1) plain text 2) local redirects 3) external redirects
  424. #
  425. # Some examples:
  426. #ErrorDocument 500 "The server made a boo boo."
  427. #ErrorDocument 404 /missing.html
  428. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  429. #ErrorDocument 402 http://jquinones-xps/subscription_info.html
  430. #
  431.  
  432. #
  433. # EnableMMAP and EnableSendfile: On systems that support it,
  434. # memory-mapping or the sendfile syscall is used to deliver
  435. # files.  This usually improves server performance, but must
  436. # be turned off when serving from networked-mounted
  437. # filesystems or if support for these functions is otherwise
  438. # broken on your system.
  439. #
  440. #EnableMMAP off
  441. #EnableSendfile off
  442.  
  443. # Supplemental configuration
  444. #
  445. # The configuration files in the conf/extra/ directory can be
  446. # included to add extra features or to modify the default configuration of
  447. # the server, or you may simply copy their contents here and change as
  448. # necessary.
  449.  
  450. # Server-pool management (MPM specific)
  451. #Include conf/extra/httpd-mpm.conf
  452.  
  453. # Multi-language error messages
  454. #Include conf/extra/httpd-multilang-errordoc.conf
  455.  
  456. # Fancy directory listings
  457. Include conf/extra/httpd-autoindex.conf
  458.  
  459. # Language settings
  460. #Include conf/extra/httpd-languages.conf
  461.  
  462. # User home directories
  463. #Include conf/extra/httpd-userdir.conf
  464.  
  465. # Real-time info on requests and configuration
  466. #Include conf/extra/httpd-info.conf
  467.  
  468. # Virtual hosts
  469. Include conf/extra/httpd-vhosts.conf
  470.  
  471. # Local access to the Apache HTTP Server Manual
  472. #Include conf/extra/httpd-manual.conf
  473.  
  474. # Distributed authoring and versioning (WebDAV)
  475. #Include conf/extra/httpd-dav.conf
  476.  
  477. # Various default settings
  478. #Include conf/extra/httpd-default.conf
  479.  
  480. # Secure (SSL/TLS) connections
  481. #Include conf/extra/httpd-ssl.conf
  482. #
  483. # Note: The following must must be present to support
  484. #       starting without SSL on platforms with no /dev/random equivalent
  485. #       but a statically compiled-in mod_ssl.
  486. #
  487. <IfModule ssl_module>
  488. SSLRandomSeed startup builtin
  489. SSLRandomSeed connect builtin
  490. </IfModule>
  491.  
  492.  
  493. #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
  494. PHPIniDir "C:/Program Files/PHP/"
  495. LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
  496. #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL


HTTPD-VHOSTS.CONF
Expand|Select|Wrap|Line Numbers
  1. #
  2. # Virtual Hosts
  3. #
  4. # If you want to maintain multiple domains/hostnames on your
  5. # machine you can setup VirtualHost containers for them. Most configurations
  6. # use only name-based virtual hosts so the server doesn't need to worry about
  7. # IP addresses. This is indicated by the asterisks in the directives below.
  8. #
  9. # Please see the documentation at
  10. # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
  11. # for further details before you try to setup virtual hosts.
  12. #
  13. # You may use the command line option '-S' to verify your virtual host
  14. # configuration.
  15.  
  16. <Directory C:/Users/josequinonesii/Websites>
  17.   Order Deny,Allow
  18.   Allow from all
  19. </Directory>
  20.  
  21. #
  22. # Use name-based virtual hosting.
  23. #
  24. NameVirtualHost 127.0.0.1:8080
  25.  
  26. #
  27. # VirtualHost example:
  28. # Almost any Apache directive may go into a VirtualHost container.
  29. # The first VirtualHost section is used for all requests that do not
  30. # match a ServerName or ServerAlias in any <VirtualHost> block.
  31. #
  32. #<VirtualHost 127.0.0.1:8080>
  33. #   DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
  34. #   ServerName localhost
  35. #</VirtualHost>
  36.  
  37. <VirtualHost 127.0.0.1:8080>
  38.     ServerAdmin jose.quinonesii@gmail.com
  39.     DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
  40.     ServerPath "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
  41.     ServerName testapache
  42.     DirectoryIndex index.php index.html index.htm index.shtml
  43. </VirtualHost>
  44.  
  45. <VirtualHost 127.0.0.1:8080>
  46.     ServerAdmin webmaster@gmail.com
  47.     DocumentRoot "C:/Users/josequinonesii/Websites/flammerpr.com"
  48.     ServerPath "C:/Users/josequinonesii/Websites/flammerpr.com"
  49.     ServerName flammerpr
  50.     DirectoryIndex index.php index.html index.htm index.shtml
  51. </VirtualHost>


WINDOWS HOSTS FILES
Expand|Select|Wrap|Line Numbers
  1. # Copyright (c) 1993-2006 Microsoft Corp.
  2. #
  3. # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
  4. #
  5. # This file contains the mappings of IP addresses to host names. Each
  6. # entry should be kept on an individual line. The IP address should
  7. # be placed in the first column followed by the corresponding host name.
  8. # The IP address and the host name should be separated by at least one
  9. # space.
  10. #
  11. # Additionally, comments (such as these) may be inserted on individual
  12. # lines or following the machine name denoted by a '#' symbol.
  13. #
  14. # For example:
  15. #
  16. #      102.54.94.97     rhino.acme.com          # source server
  17. #       38.25.63.10     x.acme.com              # x client host
  18.  
  19. 127.0.0.1       localhost
  20. ::1             localhost
  21.  
  22. 127.0.0.1:8080 flammerpr
  23. 127.0.0.1:8080 testapache
Aug 13 '09 #1
6 7562
Dormilich
8,658 Expert Mod 8TB
why did you define 127.0.0.1:8080 twice? seems to me like a real troublemaker…
Aug 13 '09 #2
I'm guessing your referring to the windows hosts file. It's required to have the IP:PORT that refers to one web server/IP with multiple domains. Once resolved it will direct the browser to the domain. Keep in mind this is all on a local machine and does not require a DNS server as there is no external access from networked machines or the Internet.
Aug 13 '09 #3
The issue was the port number in the hosts file.
Aug 13 '09 #4
I am facing the same issue..
I have rechecked all my config files.

Please tell me what you did to solve the issue
Sep 29 '09 #5
What I did was change IIS from using port 80 to 8000 and my apache instance to port 80. Let me know if you need anything else.
Sep 30 '09 #6
my host file:
127.0.0.1 localhost
::1 localhost

127.0.0.1 web1
127.0.0.1 testapache
127.0.0.1 wpmu.com
127.0.0.1 wp

sample entries for my httpd-vhosts.conf:

NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin josexxxxxxxx@gmail.com
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
ServerName testapache
DirectoryIndex index.php index.html index.htm index.shtml test.php
</VirtualHost>

<VirtualHost *:80>
ServerAdmin webmaster@gmail.com
DocumentRoot "C:/Users/xxxxxxx/Websites/web1"
ServerName flammerpr
DirectoryIndex index.php index.html index.htm index.shtml test.php
</VirtualHost>

<VirtualHost *:80>
ServerAdmin webmaster@gmail.com
DocumentRoot "C:/Users/xxxxx/Websites/wp"
ServerName wp
DirectoryIndex index.php index.html index.htm index.shtml
</VirtualHost>
Sep 30 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Ringo | last post by:
> > I'm trying to figure out how to access any VHosts > > from samebox mode, or from pc connected to the same lan. > > I've seen this done with Mac, but can't find how with win2k. > > Can someone...
0
by: KevinGravelle | last post by:
Hello, I am running an Apache web server and my httpd configuration file is utilizing the aspdotnet_module in order to run an ASP.NET application. Whenever I try and open my existing web...
15
by: mariosp | last post by:
I would like to request more information for the installation and configuration of Apache in windows 2003 and I would like to know which is better IIS or apache in Windows 2003 Server ...
3
by: sgottenyc | last post by:
Hello, Has anyone had any success running SQL Server Express on Vista with Apache via PHP? My PHP works fine, Apache works fine, and SQL Server Express works fine in Management Studio, but I...
6
by: MaiyaHolliday | last post by:
Hello, I've recently installed apache on a new computer, and cannot figure out why my site will not process any includes. (it was working on my old one) There are no errors on the page such as...
0
by: sebor | last post by:
October 29, 2007 -- The Apache C++ Standard Library project is pleased to announce that the official stdcxx 4.2.0 release is now available for download from the following location:...
2
by: mindspring | last post by:
A pc that was created in MS office xp's Access 2002 has been working fine on a windows vista Ultimate pc that has MS OFfice Vista Edition. But all of the sudden it stopped working and gives this...
5
by: Gerhard | last post by:
Hi, i'm currently running php4 on my apache 2. now i want to add a php5 support. is there a tutorial how to add also php5 to the webserver? best
0
by: rbeech23 | last post by:
I've been trying to get this working and encountering problems I've worked out how to set up the mod_jk.conf file, the workers.properties, amendment of server.xml and httpd.conf Tomcat appears okay...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.