• 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
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

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Editing httpd.conf on OpenShift

    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.

  • OpenShift OctoPress Auto install Script

    OpenShift OctoPress Auto install Script is an Advanced Script to Run OctoPress on Free OpenShift PaaS Practically Without Any Knowing Ruby or Git.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

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

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
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