Configure mutiple IBM HTTP Server / Other Apache based WEB server on 1 physical server (Section 3)

This Section will continue the actual configure for IHS related files.


3) Copy the httpd.conf file to httpd2.conf, and modify them.

 

Now Virtual IP have been added, and it‘s port 80 have been released, so we can start to do some needed configure.

Firstly, copy the httpd.conf file as httpd2.conf. For Apache based server, 1 Apache server instance need 1 httpd.conf file.

And what we need to be configured includes:

PidFile logs/httpd2.pid

DocumentRoot "C:/WEB_SITE/myaddress2.com"

Listen 192.168.67.101:80
<VirtualHost 192.168.67.101:80>

...

</VirtualHost>

TransferLog "|bin/rotatelogs.exe C:/WEB_LOG/myaddress2.com/access.%Y%m%d.log 86400 +480"
ErrorLog "|bin/rotatelogs.exe C:/WEB_LOG/myaddress2.com/error.%Y%m%d.log 86400 +480"

Now, if we start a new IHS instance with this configure file, then it will be a different instance.

 

4) Create the needed folders (DocumentRoot, log folder, etc.) and add Hostname/IP entry in the hosts file (if needed).

 

Actually what we need to create is only:

DocumentRoot "C:/WEB_SITE/myaddress2.com"   and

TransferLog "|bin/rotatelogs.exe C:/WEB_LOG/myaddress2.com/access.%Y%m%d.log 86400 +480"

And for testing purpose, we put an index.html file into the document root folder:

After that, we‘d better add the domain of the IP into the hosts file so that we can access our website via both IP and domain name, we can define any domain name for our IP because it‘s a Internal IP.

File location: Windows: C:\WINDOWS\system32\drivers\etc\hosts       Linux: /etc/hosts

 

5) Start the IHS/Apache service.

 

Go to the IHS home\bin folder, we will use the apache.exe to start the instance with the new httpd2.conf file.

Use this command to verify if the syntax of the config file is fine: apache.exe -t -f C:\IBM\HTTPServer\conf\httpd2.conf

In order to start the service, there are some difference between Linux and Windows:

Linux:

This command will works: apache.exe -k start -f C:\IBM\HTTPServer\conf\httpd2.conf

Windows:

We need to add the new service into the Windows service manager, and then start it via the Windows service UI:

Firstly, add the service:

C:\IBM\HTTPServer\bin>apache.exe -k install -n "ihs-myaddress2.com" -f C:\IBM\HTTPServer\conf\httpd.conf

Succeed! Then open services.msc, can see it have been added successfully.

Right click, and click start.

OK, the service have been started.

6) Verify if the changes works.

 

How to test?

Yeah, we are configuring a website infrastructure, of course the best way is test via browser.

Our web page have been displayed successfully. And you can continue to put more web pages into the document root folder.

Now, start to write your own website via maybe html and JS, if want to release it to Internet, may need some port forward configure in your home router device, and that will be another toy what can be play with.

Enjoy it!

Configure mutiple IBM HTTP Server / Other Apache based WEB server on 1 physical server (Section 3)

时间: 2024-10-13 10:52:27

Configure mutiple IBM HTTP Server / Other Apache based WEB server on 1 physical server (Section 3)的相关文章

Configure mutiple IBM HTTP Server / Other Apache based WEB server on 1 physical server (Section 1)

It's very simple to configure a IBM HTTP Server / Apache service on a server. But sometimes, considering the cost or any other reason, we need to share a physical server and configure 2 or more Web services. How to do it? Here I list out the major st

Configure mutiple IBM HTTP Server / Other Apache based WEB server on 1 physical server (Section 2)

Continue from the last article...... 2) Confirmed the 80 port of the new added IP is not listened by any other services.   Why need to test this? This is to ensure the 80/443 port of the new created IP is not listened by any other application. Test m

【apache http server安装】CentOS上编译安装Aapche Http Server详细过程

下载apache httpd # wget http://mirrors.cnnic.cn/apache//httpd/httpd-2.4.10.tar.gz 2. 解压 apache httpd # tar xzvf httpd-2.4.10.tar.gz 编译apache httpd [[email protected]]# ./configure checkingfor chosen layout... Apache checkingfor working mkdir -p... yes

编译安装apache2.4.37(Server version: Apache/2.4.37 )

Server version: Apache/2.4.37 (Unix)CentOS Linux release 7.4.1708 (Core) Server built: Nov 9 2018 15:22:45 下载3个环境源码以及httpd压缩源码安装包1.wget http://www.apache.org/dist/httpd/httpd-2.4.37.tar.gzwget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.42/pc

Hadoop HA HDFS启动错误之org.apache.hadoop.ipc.Client: Retrying connect to server问题解决

近日,在搭建Hadoop HA QJM集群的时候,出现一个问题,如本文标题. 网上有很多HA的博文,其实比较好的博文就是官方文档,讲的已经非常详细.所以,HA的搭建这里不再赘述. 本文就想给出一篇org.apache.hadoop.ipc.Client: Retrying connect to server错误的解决的方法. 因为在搜索引擎中输入了错误问题,没有找到一篇解决问题的.这里写一篇备忘,也可以给出现同样问题的朋友一个提示. 一.问题描述 HA按照规划配置好,启动后,NameNode不能

JRE System Library [jdk1.7]和Server Library [Apache Tomcat v6.0]为绑定错误解决方案

今天在用Myeclipse8.6导入一个Java Web工程时,包错,通过单击导入的文件工程名,点击属性(properties),查看Java Build Path,有如下信息:JRE System Library [jdk1.7](unbound)和Server Library [ApacheTomcat v6.0](unbound) JRE System Library[jdk1.7](unbound)系统JRE未绑定解决方案 eclipse导入项目报错 :Unboundclasspath

application master 持续org.apache.hadoop.ipc.Client: Retrying connect to server

一.问题现象 某一个nodemanager退出后,导致 application master中出现大量的如下日志,并且持续很长时间,application master才成功退出. 2016-06-24 09:32:35,596 INFO [ContainerLauncher #3] org.apache.hadoop.ipc.Client: Retrying connect to server: dchadoop206/192.168.1.199:32951. Already tried 1 

eclipse配置server没有Apache tomcat 7.0

eclipse配置server没有Apache tomcat 7.0 原因:eclipse中WTP版本太低了 解决方案: 换成高版本就有行了 eclipse配置server没有Apache tomcat 7.0,布布扣,bubuko.com

Server Library [Apache Tomcat 7.0] unbound解决方案

问题描述: 当在MyEclipse中导入高版本Eclipse的[Eclipse Dynamic Web]项目后,会发现其Java Build Path(选定项目->Alt+Enter即可打开Properties for MyApp)的Libraries中有一项显示:Server Library [Apache Tomcat 7.0] (unbound),即"未绑定",如下截图所示: 如此将造成:由于缺少Tomcat的jar包(jsp-api.jar.servlet-api.jar