vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   General Hosting/Server Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=197)
-   -   Subdomain question (https://vborg.vbsupport.ru/showthread.php?t=164550)

siliconfinance 12-07-2007 01:16 AM

Subdomain question
 
In preparation for vbseo installation, I created a subdomain for my forums through cpanel on my linux server.

Strangely, the subdomain automatically redirects to the folder path so, for example, my subdomain http://forums.mysite.com redirects to http://www.mysite.com/forums/.

I really would like the subdomain to load the forums files without displaying the forum folders in the URL path.

Someone told me I need to create a custom vhost directive in the http.conf, but that sounds more complicated than it should be. I have deleted and recreated the subdomain multiple times and each time I rename the forums folder before doing so (and then dropping the forum files back into the new subdomain folder. I have had zero success.

Any help would be appreciated!

wally 12-25-2007 03:25 PM

Just add this to your apache httpd.conf

<VirtualHost *:80>
ServerAdmin webmaster@<your domain>
DocumentRoot /var/www/<your directory>
ServerName forum.yourdomain.coml
</VirtualHost>

apply and restart apache

if you dont want this you can also force a redirect with a .htaccess file

SEOvB 12-25-2007 10:36 PM

Does it redirect you to that after you've clicked a link? If so, Do you have your paths setup correctly in the AdminCP?


All times are GMT. The time now is 09:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00947 seconds
  • Memory Usage 1,710KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (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_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete