root directory and other directories!!

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Liquid Crystal
Posts: 4
Joined: Tue Dec 07, 2004 10:09 am

root directory and other directories!!

Post by Liquid Crystal »

Hi all,

I have s9y set up fine on my web server (Apache2) and s9y is installed on the "DocumentRoot", for example; it is in /var/www/localhost/htdocs.

Now if I try to create any subdirectory under my DocumentRoot and try to point to it through my browser, I get routed back to s9y!!!!

I hope I was clear enough for you all to understand my problem...As I would really appreciate any suggestions/solutions or ideas.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: root directory and other directories!!

Post by garvinhicking »

Serendipity usually only routes back to the blog for non-existing subdirectories (404). So are you sure you're using the right URL?

You could also try to set the 'Rewrite' Serendipity Configuration directive to 'None' and then no routing should take place...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Liquid Crystal
Posts: 4
Joined: Tue Dec 07, 2004 10:09 am

Post by Liquid Crystal »

Do you mean to set "URL Rewriting" option to "Disable URL Rewriting" in "Appearance and Options" under the s9y configuration?

Configuration > Appearance and Options > URL Rewriting

Or is it somewhere else?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Yes, that's what I meant :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Liquid Crystal
Posts: 4
Joined: Tue Dec 07, 2004 10:09 am

Post by Liquid Crystal »

Unfortunately that didn't solve my problem :(

could it be something in my commonapache2.conf file?
like this part?

Code: Select all

<Directory />
  Options Multiviews Indexes Includes FollowSymLinks
  AllowOverride All
  <IfModule mod_access.c>
    Order allow,deny
    Allow from all
  </IfModule>
</Directory>
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hm, no, that shouldn't be part of the problem.

Try to temporarily remove your '.htaccess' file of the s9y root and see if that works out. If it does work afterwards, please post what your .htaccess looks like exactly.

If it still doesn't work (what I somehow expact), the trouble lies somewhere else in your Apache config...

Regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

Ok, removing my .htaccess did solve the problem
Now I can go to any directory under my DocumentRoot.

This was my .htaccess:

Code: Select all

# BEGIN s9y
DirectoryIndex /index.php
php_value session.use_trans_sid 0
php_value register_globals off
<Files *.tpl>
    deny from all
</Files>

<Files *.sql>
    deny from all
</Files>

<Files *.inc.php>
    deny from all
</Files>

<Files *.db>
    deny from all
</Files>

# END s9y
Liquid Crystal
Posts: 4
Joined: Tue Dec 07, 2004 10:09 am

Post by Liquid Crystal »

Sorry I wasn't logged in, it is my reply :oops:

Thanks a lot garvinhicking, it's working fine :)
Post Reply