For Programmers: Free Programming Magazines  


Home > Archive > PHP SQL > August 2004 > from URL to PHPBB2 forum









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author from URL to PHPBB2 forum
Erik

2004-08-31, 8:57 am

I have this PHPBB2 forum running on my server.

I want the user coming in from the internet to get directly into a
specific forum I created.

so the user types "http://for1.xxx.com"

and immediately gets the login screen for forum for1.

Now she comes in at the screen that shows all the forums I defined, by
typing php.xxx.com.
But I don't want that.


suggestions ?


frgr
Erik
Erik

2004-08-31, 3:58 pm

I found this working, myself:

========================================
========
VirtualDocumentRoot /var/www/%0/htdocs

<Directory />
AllowOverride None
Options None
Order Deny,Allow
Deny from all
</Directory>

<Directory /var/www >
Options FollowSymLinks
</Directory>

<Directory /var/www/*.mydomain.*/htdocs >
Order Deny,Allow
Allow from All
</Directory>

<Directory /var/www/php.mydomain.com/htdocs >
DirectoryIndex viewforum.php?f=2?start=0
Order Deny,Allow
Allow from All
</Directory>

<Directory /var/www/fam.mydomain.com/htdocs >
DirectoryIndex viewforum.php?f=1?start=0
Order Deny,Allow
Allow from All
</Directory>

<Directory /var/www/plato.mydomain.com/htdocs >
DirectoryIndex viewforum.php?f=2?start=0
Order Deny,Allow
Allow from All
</Directory>

<Directory /var/www/*.mydomain.*/htdocs/docs >
Order Deny,Allow
Allow from 192.169.0.36
</Directory>

========================================
======

where fam and plato are symlinks to php.

Works ok, but I don't think that plato forum is invissible and
inaccessable, when typing fam.mydomain.com as an URL...

But that fancy "DirectoryIndex" does work, while it is not in The
Book.

btw: viewforum.php?f=2 etc. means a specific forum is accessed.


Any suggestions as to how to make "the other forum" invisible ?

fr gr
Erik
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com