-
Notifications
You must be signed in to change notification settings - Fork 122
RStudio: Replace supervisord and fcgi with httpd #2530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # Basic httpd configuration for CGI processing | ||
| ServerRoot "/etc/httpd" | ||
| Listen 8080 | ||
|
|
||
| # Load modules | ||
| LoadModule mpm_prefork_module modules/mod_mpm_prefork.so | ||
| LoadModule unixd_module modules/mod_unixd.so | ||
| LoadModule authz_core_module modules/mod_authz_core.so | ||
| LoadModule mime_module modules/mod_mime.so | ||
| LoadModule alias_module modules/mod_alias.so | ||
| LoadModule dir_module modules/mod_dir.so | ||
| LoadModule autoindex_module modules/mod_autoindex.so | ||
| LoadModule cgi_module modules/mod_cgi.so | ||
| LoadModule rewrite_module modules/mod_rewrite.so | ||
|
|
||
| # User and Group - run as the container user (OpenShift assigns random UIDs) | ||
| User default | ||
| Group root | ||
|
|
||
| # PidFile for process management | ||
| PidFile /var/run/httpd/httpd.pid | ||
|
|
||
| # Server configuration | ||
| ServerAdmin root@localhost | ||
| ServerName localhost | ||
|
|
||
| # Document root | ||
| DocumentRoot "/opt/app-root" | ||
|
|
||
| # Directory configuration | ||
| <Directory /> | ||
| AllowOverride none | ||
| Require all denied | ||
| </Directory> | ||
|
|
||
| <Directory "/opt/app-root"> | ||
| AllowOverride None | ||
| Options +ExecCGI | ||
| Require all granted | ||
| AddHandler cgi-script .cgi | ||
| </Directory> | ||
|
|
||
| # Error and access logs | ||
| ErrorLog "/var/log/httpd/error_log" | ||
| LogLevel warn | ||
|
|
||
| # Types configuration | ||
| TypesConfig /etc/mime.types | ||
|
|
||
| # Include additional configurations (exclude SSL) | ||
| IncludeOptional conf.d/autoindex.conf | ||
| IncludeOptional conf.d/userdir.conf | ||
| IncludeOptional conf.d/welcome.conf | ||
| IncludeOptional conf.d/rstudio-cgi.conf | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # RStudio-server CGI configuration | ||
| # This configuration handles the /api/ endpoints for culling and health checks | ||
|
|
||
| # Set the CGI script paths | ||
| ScriptAlias /api/kernels/ /opt/app-root/api/kernels/access.cgi | ||
| ScriptAlias /api/probe /opt/app-root/api/probe.cgi | ||
| ScriptAlias /api /opt/app-root/api/probe.cgi | ||
|
|
||
| # Enable CGI for the API endpoints | ||
| <LocationMatch "^/api/?"> | ||
| SetHandler cgi-script | ||
| Options +ExecCGI | ||
| Require all granted | ||
| </LocationMatch> | ||
|
|
||
| # Ensure the CGI scripts are executable | ||
| <Directory "/opt/app-root/api"> | ||
| Options +ExecCGI | ||
| AddHandler cgi-script .cgi | ||
| Require all granted | ||
| </Directory> | ||
|
|
||
| <Directory "/opt/app-root/api/kernels"> | ||
| Options +ExecCGI | ||
| AddHandler cgi-script .cgi | ||
| Require all granted | ||
| </Directory> | ||
atheo89 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.