vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   Apache server question (https://vborg.vbsupport.ru/showthread.php?t=248168)

BSMedia 08-11-2010 03:18 AM

Quote:

Originally Posted by Marco van Herwaarden (Post 2081158)
Because it will have 2 pageloads.

Would a 301 redirect work better?

Marco van Herwaarden 08-11-2010 06:55 AM

I am not an expert on this, but i think the order based on performance is:

- Webserver config.
- .htaccess
- Page redirect

Angel-Wings 08-15-2010 09:51 AM

Quote:

Originally Posted by Marco van Herwaarden (Post 2082045)
- Webserver config.
- .htaccess
- Page redirect

Doesn't matter much. If it's configured in the Webserver but still AllowOverride is set Apache will still look for .htaccess.

For - for VB fastest would be something like:

Quote:

<Directory /where/ever/vb/is/installed>
AllowOverride None
Options None
...
</Directory>
Then setting a redirect via mod_rewrite or some META redirect via a small HTML page from the old location. :)

Boofo 08-15-2010 11:44 AM

Quote:

Originally Posted by Angel-Wings (Post 2084158)
Doesn't matter much. If it's configured in the Webserver but still AllowOverride is set Apache will still look for .htaccess.

For - for VB fastest would be something like:



Then setting a redirect via mod_rewrite or some META redirect via a small HTML page from the old location. :)

But wouldn't that make the .htaccess moot then?

Nano_ 08-29-2010 03:30 PM

httpd-vhost.conf (or just vhost.conf):

HTML Code:

<VirtualHost YOUR.IP.HERE:80>
        DocumentRoot /direct/folder/to/your/forum
        ServerName forum.yourdomain.com
        ServerAdmin admin@yourdomain.com
        ScriptAlias "/cgi-bin/" "/direct/folder/to/your/forum/cgi-bin/"
        ServerAlias www.yourdomain.com forum.yourdomain.com anything.yourdomain.com
        ErrorLog logs/www-error.log
        Options ExecCGI Indexes FollowSymLinks
</VirtualHost>

Save, restart apache using ./apachetcl -k graceful (or any command to restart apache).

GSbiker 08-29-2010 04:08 PM

Thanks....I will give it a try. :up:


All times are GMT. The time now is 09:08 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.01136 seconds
  • Memory Usage 1,728KB
  • 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)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete