Problems after updating phpbb3

Discussion in 'HTML / PHP / JavaScript / CSS' started by Anuj Seth, Apr 6, 2011.

  1. Hi,

    I just updated phpbb3 to the latest version, I think I've broken something, and am having a hard time figuring out what went wrong.

    Earlier the forum link www.graphitecharts.com/forum worked perfectly. This was the default install from the web application gallery. After updating this link is listing the contents of the directory for some reason. Any idea why this might be happening ? www.graphitecharts.com/forum/index.php still works but its not as clean.

    I tried to add a rewrite rule in my rewrite map (using the URLRewrite module) to map /forum to /forum/index.php but it seems phpbb uses relative urls in a lot of places and things links like images/blah/blah are getting broken as a result. Using the rewrite rule would have worked if these url's began with a / like /images/blah but this doesn't seem to be the case.

    Any help is much appreciated.

    thanks,
    anuj.
     
  2. Thank you kind sir. That fixed it. :)
     
  3. Just incase someone else gets stuck on this. I checked the site backup before the update, the problem is by default the web gallery installation creates the perfect web.config file, this looks like

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <defaultDocument>
                <files>
    		<remove value="index.php" />
                    <add value="index.php" />
                </files>
            </defaultDocument>
        </system.webServer>
    </configuration>
    
    which is what Jose's link points to. The problem is that the phpbb3 update (updating from 3.0.7 PL1 to 3.0.8) adds a new web.config file of its own which contains other information so just update this new file to show the default document. Mine looks like this now

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
            <!-- anuj seth 6th april 2011, edit to prevent directory listing -->
            <system.webServer> 
                <defaultDocument> 
                    <files> 
                        <add value="index.php" /> 
                    </files> 
                </defaultDocument> 
            </system.webServer>
            <!-- edit ends -->
    	<system.webServer>
    		<security>
    			<requestFiltering>
    				<hiddenSegments>
    					<add segment="cache" />
    					<add segment="files" />
    					<add segment="store" />
    					<add segment="config.php" />
    					<add segment="common.php" />
    				</hiddenSegments>
    			</requestFiltering>
    		</security>
    	</system.webServer>
    	<location path="images/avatars">
    		<system.webServer>
    			<security>
    				<requestFiltering>
    					<hiddenSegments>
    						<add segment="upload" />
    					</hiddenSegments>
    				</requestFiltering>
    			</security>
    		</system.webServer>
    	</location>
    </configuration>
    
     
  4. Thanks for that info!
     

Share This Page