- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Apache Startup - Do You Agree With This Change...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2008 12:24 AM
тАО08-05-2008 12:24 AM
When I dugg into this with HP, I found the instance was starting using the HTTPD.CONF from our Production nodes, because of this code in APACHE$STARTUP.COM :-
$ IF P2 .EQS. ""
$ THEN
$ ConfigFile = "APACHE$COMMON:[CONF]HTTPD.CONF"
$ ELSE
$ ConfigFile = F$EDIT (P2, "TRIM,UPCASE")
$ ENDIF
My gut feeling is that this is really a bug in the startup, and it should look at APACHE$ROOT for the file, so I can automatically assign different configurations to different nodes. As it stands, I have to start Apache like this, to make it read the correct CONF :-
$ @sys$startup:apache$startup start apache$root:[conf]httpd.conf
If I restart the server, but forget to specify the correct CONF, it could then end up running the Production config instead.
The problem with changing the command file to APACHE$ROOT (as I believe is should be) is it could easily break a lot of sites.
Given that, I'd like to know if you think this should be changed and documented in the next release, or that it's fine and people are aware of this already?
Thanks, Rob.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2008 02:57 AM
тАО08-05-2008 02:57 AM
Re: Apache Startup - Do You Agree With This Change?
The startup prefers a cluster wide config file as default. In my case that would be correct because both cluster nodes run the same server (but WASD). You prefer the node specific file. OK but whatever the script takes as default, someone will complain.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2008 05:14 AM
тАО08-05-2008 05:14 AM
Re: Apache Startup - Do You Agree With This Change?
If you want Cluster wide, just place the CONF in APACHE$COMMON. If you want node-specific, then place it in APACHE$SPECIFIC.
Does this sound reasonable.
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2008 06:08 AM
тАО08-05-2008 06:08 AM
Re: Apache Startup - Do You Agree With This Change?
I agree 100%.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2008 03:07 PM
тАО08-05-2008 03:07 PM
Re: Apache Startup - Do You Agree With This Change?
I agree you'd be better off with a search list for the default. I'd go one step further and add an additonal layer of defaults using a logical name. I'd also structure the code differently to make it easier to implement a cascade of defaults.
$! Search for a valid config file
$ ConfigFile = F$SEARCH(P2)
$ IF ConfigFile .EQS. "" THEN ConfigFile =F$SEARCH("APACHE$DEFAULT_CONFIG")
$ IF ConfigFile .EQS."" THEN ConfigFile = F$SEARCH("APACHE$ROOT:[CONF]HTTPD.CONF")
$ IF ConfigFile .EQS.""
$ THEN
$ report error - no config file found.
$ ENDIF
(I've removed the "UPCASE" because you might want an ODS5 filespec)
You may also want to report which config file you end up using to help debug incorrect filespecs.
Obviously other defaults can be added to the search.
>If I restart the server, but forget to
>specify the correct CONF, it could then
>end up running the Production config
>instead.
If that's an issue, I'd recommend moving your production config out of the cluster wide location, so you can't accidently start it from the wrong node. Put a "catch all" config in the cluster wide area that contains a default page telling you something is wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2008 11:54 PM
тАО08-05-2008 11:54 PM
Re: Apache Startup - Do You Agree With This Change?
> out of the cluster wide location
That would cause a common dilema. One node with a specific config and other nodes with a common config, and a nightmare to maintain.
It's often overcome by using a 'SET FILE/ENTER' so you're using an alias to always edit the common file, but I have never liked doing this.
Another more visible option would be to use a HTTPD_NODE_SPECIFIC.CONF, which may already be an option by using an 'INCLUDE' statement? Not sure if Apache would allow the specific config to override the generic one though.
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2008 01:19 PM
тАО08-06-2008 01:19 PM
Re: Apache Startup - Do You Agree With This Change?
>That would cause a common dilema. One node
>with a specific config and other nodes
>with a common config, and a nightmare to
>maintain.
In that case either I haven't explained myself, or I haven't understood your problem! You implied having one node start up the "common" config was a problem. To my mind that means it's not a common config!
If you have a cluster with several groups of nodes sharing different configs, then the simple specific+common model doesn't fit your reality. You need an extra layer(s) to create the appropriate structure.
With the code I posted, you could easily move shared configs to other places, outside the specific+common tree, and use my proposed APACHE$DEFAULT_CONFIG logical name to point each node to its correct config, some shared, some not. Leave the fall through "common" default config as a "something's wrong!". That way you avoid your maintenance issue, and you fail safe for all nodes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2008 10:13 PM
тАО08-06-2008 10:13 PM
Solutionadd an include of this file in the configuration file but use a logical there, that is defined when starting Apache, and based on the nodename (/SYSTEM, or /TABLE=LNM$GROUP_
(I haven't tried this particular scenario but used a similar method for other purposes)
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2009 06:39 AM
тАО12-02-2009 06:39 AM
Re: Apache Startup - Do You Agree With This Change?
Rob.