• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Editing httpd.conf on OpenShift

By Abhishek Ghosh August 12, 2014 5:42 pm Updated on August 12, 2014

Editing httpd.conf on OpenShift

Advertisement

For various reasons, an user might want editing httpd.conf on OpenShift PaaS. Here is how you can edit and making it working on restart. We have quite good number of articles on OpenShift PaaS, one can use the search feature on this website to get the search result like a list of article by using OpenShift as keyword to search. First you need to know about the Cloud Computing Service Models. Second thing is that, PaaS is not exactly like a cPanel webhosting.
OpenShift has a free tier of usage simply because, when launched, it was intended for the developers. PaaS came with offers but initially had no standards “ the big providers presented strategies for Platform as a Service. There are reasons to use PaaS as well as there are shortcomings.

 

Editing httpd.conf on OpenShift : First Things First

 

You will need Shell Access on OpenShift, which is possible through the command line tool. Basic UNIX commands and their own commands can be executed on OpenShift PaaS Cloud. MySQL supports interactive mode as well. We have a basic guide on using OpenShift Command Line Tool. We have a small video guide on OpenShift SSH too, please click watch it on YouTube and click the gear icon on YouTube to select the highest resolution (1080p HD).

Editing-httpd.conf-on-OpenShift

 

Editing httpd.conf on OpenShift

 

May be, you need to make an apache directory alias and define a directory with some permissions. If you add some herdoc statements to deployment script, commit the change, and pushed to rhc, it will not work. Ensure that httpd is installed :

Advertisement

---

Vim
1
sudo yum install httpd

We basically need to create a small environment for Apache to run with your username. Our user is abhishekghosh so, should create a directory on this path => /home/abhishekghosh/this-example/. Commands are easy :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
mkdir -p ~/this-example/
# this-example is just an example
cd ~/this-example/
# let us create directory for logs, html for static pages, a directory (etc) for configuration,
# conf.d for any more changes to Apache
mkdir logs run html etc conf.d
# copy from original location
cp /etc/httpd/conf/httpd.conf etc/
# edit httpd config file looking like this
Listen 127.1.2.3:8080
# default is
# Listen 80
# 127.1.2.3 is as per documentation
# Edit ServerRoot directory
ServerRoot œ/home/abhishekghosh/this-example/
# default is /etc/httpd
# change abhishekghosh/this-example/
DocumentRoot œhtml/
# it was different by default
# symlink the modules
ln -s /usr/lib64/httpd/modules/ modules
# or
ln -s /usr/lib/httpd/modules/ modules
# check version of httpd, i.e. 64bit httpd, 32bit httpd etc

The following command should also start Apache httpd:

Vim
1
httpd -f ~/this-example/etc/httpd.conf

What we wrote up to this is :

Vim
1
2
3
4
https://github.com/openshift/origin-server/tree/master/cartridges/openshift-origin-cartridge-mock
# docs
http://openshift.github.io/documentation/oo_cartridge_developers_guide.html
http://openshift.github.io/documentation/oo_cartridge_guide.html

You can clone or download the repo zip from github:

Vim
1
https://github.com/openshift/origin-server/archive/master.zip

Up to this is a way.
But in case you want an alias pointing to the files outside of the ApacheDocument root, assuming FollowSymLinks is enabled in the cartridge, so all you need is to create a symlink. Here is the Apache conf file :

Vim
1
2
3
4
5
6
7
Alias /your-public-alias "/path/to/outside/of/document/root"
<Directory "/path/to/outside/of/document/root">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

Vim
1
ln -s /path/to/outside/of/document/root ${OPENSHIFT_REPO_DIR}/sub-directory/your-public-alias

The .htaccess file inside of /path/to/outside/of/document/root will override all. Just restart :

Vim
1
rhc app restart

This is a recovered post from Google Cache due to WordPress and PHP’s Failure.

This is Google’s cache of https://thecustomizewindows.com/2014/07/editing-httpd-conf-on-openshift/. It is a snapshot of the page as it appeared on 5 Aug 2014 05:29:40 GMT.

Tagged With edit httpd conf , openshift httpd conf , openshift add directory apache , httpd conf openshift , how edit httpd conf debian 10 , Editing , edit win10 httpd conf , edit httpd conf to allow outside viewers , Edit httpd conf openshift , edit file httpd conf openshift

This Article Has Been Shared 340 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Editing httpd.conf on OpenShift

  • How to Choose a VPS or Virtual Private Server

    How to Choose a VPS or Virtual Private Server by a starter or someone who wants to shift from free blogs like WordPress, Tumbler or Blogger or want to upgrade.

  • How To Install MediaWiki on Rackspace Cloud Sites Video Guide

    How To Install MediaWiki on Rackspace Cloud Sites Video Guide is an add-on guide for our Installing MediaWiki on Rackspace Cloud Sites guide to make it clear.

  • Typical Errors in Deployment of Applications and Websites on the Cloud

    Typical Errors in Deployment of Applications and Websites on the Cloud usually related to application performance, security and choice of tools for monitoring.

  • YouTube Video to MP3 Converter on Cloud Based Platform

    YouTube Video to MP3 Converter on Cloud Based Platform are quite easy to install and run. Many PaaS are Free and provide DDNS and supports Ruby Gem to run.

  • Cloud Based Mobile App Development : Junior for HTML5 Mobile Apps

    Cloud Based Mobile App Development can be coded easily for the back-end. It is the Front-end which creates confusion to many. Junior is front-end framework.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023
  • Get Audiophile-Grade Music on Your Smartphone March 25, 2023
  • Simple Windows Security and Privacy Checklist for 2023 March 24, 2023
  • 7 Best Artificial Intelligence (AI) Software March 24, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Editing httpd.conf on OpenShift," in The Customize Windows, August 12, 2014, March 28, 2023, https://thecustomizewindows.com/2014/08/editing-httpd-conf-openshift/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT