View Single Post
  #1  
Old 01-14-2005, 06:54 AM
Harlequin's Avatar
Harlequin Harlequin is offline
 
Join Date: Aug 2003
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Apache -> VirtualHosts -> Redirect Problem

I'm using Apache 2.0.52 with PHP 5.0.3 on a Windows 2003 standard server on a dedicated machine. I'm having some issues trying to setup the Apache Virtualhosts to call a wildcard and point it to whatever the wildcard is for a php file. I know I may have just butchered what I'm asking for here, but let me try to explain a little clearer :P (It's so early in the morning here. -cries-).

Let's say I'm attempting to use variable.domain.com as my virtual host (subdomain even.)

When variable.domain.com is called, the "variable" should be transferred to the address of whatever the PHP file is + the variable string calling whatever in the PHP itself.

variable.domain.com points to http://www.domain.com/index.php?variable=$variable, for instance.

Now that I've kinda explained what I'm doing here, let me finally get to the problem -- :disappointed:

When an address is typed in the location bar of the browser including the subdomain, the address simply isn't found (I'm using Firefox.) I don't get a 404 or anything. It just dies.

My question is -- should something be in the Windows "hosts" file that I'm missing or should something be setup in the Apache httpd.conf or .htaccess files a little differently? Currently, I have not touched the "hosts" file (which, from what I've read on other websites.. this -would- be the problem.. but I'm just trying to make sure here.) Am I being a total klutz somewhere along the lines of setting this up? Has anyone else had a similiar problem and care to share the experience?

Can anyone give me an example of their own setup or a resource to get a little help? If anyone has any questions in regards to what I'm trying to do -- please don't hesitate to ask. I'm just a little stumped and not exactly sure where to turn seeing as this is my second time setting up Adobe and first time playing with the virtual hosts configuration.

Thanks much.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01678 seconds
  • Memory Usage 1,765KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete