Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8285287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:26:00+00:00 2026-06-08T11:26:00+00:00

CSS isn’t working corectly on IIS 7.5 using Helicon Zoo and Sinatra. Here is

  • 0

CSS isn’t working corectly on IIS 7.5 using Helicon Zoo and Sinatra.

Here is the directory structure:

welcometo
 --public
  --styles
   --welcometo.css

I tested my site using Webrick and it works perfectly.

When I go to localhost:4567/styles/welcometo.css, the style sheet is displayed in the web browser.

When I go to the IIS site /styles/welcometo.css I get this error:

Try this:
get '/public/styles/welcometo.css' do
    "Hello World"
end

I copied the web.config from Helicon Zoo’s Sinatra page. Here is the Static files section:

<!-- Send static files through IIS -->
<rewrite>
    <rules>
            <rule name="Avoid Static Files" stopProcessing="true">
                <match url="^(?!public)(.*)$" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="true">
                        <add input="{APPL_PHYSICAL_PATH}" pattern="(.*)" ignoreCase="false" />
                        <add input="{C:1}public\{R:1}" matchType="IsFile" />
                    </conditions>
            <action type="Rewrite" url="public/{R:1}" />
                </rule>
        </rules>
</rewrite>

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T11:26:02+00:00Added an answer on June 8, 2026 at 11:26 am

    We forget to include the web.config example for /public folder, sorry. You can see this example on the page for Ruby on Rails installation here: Ruby on Rails (2.3.x and 3.x.x) on IIS
    Please put this web.config file into the /public folder:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <handlers>
                    <!-- 
                    This disables Helicon Zoo handler and makes IIS processing static
                    files directly.
                    -->
                    <remove name="rails.project#x64" />
                    <remove name="rails.project#x86" />
            </handlers>
        </system.webServer>
    </configuration>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

the callback function here isn't working. I think I'm using the startColor variable incorrectly.
For some reason my CSS Gradient isn't working in Firefox (v10.0.1). The main background
I have some pretty basic HTML/CSS that isn't working as I expect. Basically I
Sadly, CSS outline isn't supported in IE7, so i'm stuck using border. But adding
Can someone explain me why the following css isn't working for iexplorer 8? .rounded_corners{
I have the following CSS which isn't working in IE7. input:focus{border-width: 2px;border-color: Blue; border-style:
I'm currently designing this website http://avs.mybigcommerce.com . The problem is that my styles.css isn't
Why isn't my style.css making changes to index.html? Both files validate perfectly. Folder set
Isn't there a CSS way of having the page to get a border around
CSS newbie here. Strange thing is happening, I have gaps between links, and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.