Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
fbdd92fc
Commit
fbdd92fc
authored
11 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
Add web.config for IIS to serve the API
parent
ea1ed4f6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web.config
+47
-0
47 additions, 0 deletions
web.config
with
47 additions
and
0 deletions
web.config
0 → 100644
+
47
−
0
View file @
fbdd92fc
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
configuration
>
<
configSections
>
<
sectionGroup
name
=
"system.webServer"
>
<
sectionGroup
name
=
"rewrite"
>
<
section
name
=
"rewriteMaps"
overrideModeDefault
=
"Allow"
/>
<
section
name
=
"rules"
overrideModeDefault
=
"Allow"
/>
</
sectionGroup
>
</
sectionGroup
>
</
configSections
>
<
system
.
webServer
>
<
directoryBrowse
enabled
=
"false"
/>
<
rewrite
>
<
rules
>
<
rule
name
=
"HTTP api"
stopProcessing
=
"true"
>
<
match
url
=
"^(.*/)?api/(.*)$"
ignoreCase
=
"true"
/>
<
conditions
>
<
add
input
=
"{REQUEST_FILENAME}"
matchType
=
"IsFile"
ignoreCase
=
"false"
negate
=
"true"
/>
<
add
input
=
"{REQUEST_FILENAME}"
matchType
=
"IsDirectory"
ignoreCase
=
"false"
negate
=
"true"
/>
</
conditions
>
<
action
type
=
"Rewrite"
url
=
"{R:1}api/http.php/{R:2}"
/>
</
rule
>
<
rule
name
=
"Site pages"
stopProcessing
=
"true"
>
<
match
url
=
"^(.*/)?pages/(.*)$"
ignoreCase
=
"true"
/>
<
conditions
>
<
add
input
=
"{REQUEST_FILENAME}"
matchType
=
"IsFile"
ignoreCase
=
"false"
negate
=
"true"
/>
<
add
input
=
"{REQUEST_FILENAME}"
matchType
=
"IsDirectory"
ignoreCase
=
"false"
negate
=
"true"
/>
</
conditions
>
<
action
type
=
"Rewrite"
url
=
"{R:1}pages/index.php/{R:2}"
/>
</
rule
>
</
rules
>
</
rewrite
>
<
defaultDocument
>
<
files
>
<
remove
value
=
"index.php"
/>
<
add
value
=
"index.php"
/>
</
files
>
</
defaultDocument
>
</
system
.
webServer
>
</
configuration
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment