- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Access HP-UX server through http
Operating System - HP-UX
1753406
Members
7232
Online
108793
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО09-23-2010 04:23 AM
тАО09-23-2010 04:23 AM
Re: Access HP-UX server through http
The Apache httpd processes you're currently seeing are related to HP System Management Homepage. It's an instance of Apache, but it's completely dedicated to running SMH. You should not try to change its configuration.
Instead, install the Apache webserver software package to your HP-UX:
https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXWSATW312
This provides a "general-purpose" Apache webserver which you can configure as much as you like.
Then read Apache documentation to understand what you're doing.
http://httpd.apache.org/docs/2.2/
There are many ways to configure which parts of your HP-UX filesystem will be accessible as URLs:
http://httpd.apache.org/docs/2.2/urlmapping.html
For example, if you want to make /opt/webdata/dir visible as http://x.x.x.x/dir, you would configure:
Alias /dir /opt/webdata/dir
Another way to achieve the same thing would be to set DocumentRoot to /opt/webdata. (Setting DocumentRoot to / is definitely not recommended!)
To allow displaying of directory listing instead of pre-prepared index.html (or similar), you must add these lines to Apache configuration to activate the Indexes option for your directory:
Options +Indexes
See:
http://httpd.apache.org/docs/2.2/mod/core.html#options
There are various other configuration directives you can use to change the style of the directory listing:
http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html
By default, Apache allows only reading the files (HEAD and GET methods). Furthermore, Apache typically reads files using a special unprivileged user (typically named "httpd" or "apache"): if the directory or file permissions don't allow this user to read the file or directory, Apache cannot send it to the client.
If you want to allow write access through HTTP/HTTPS, you use an Apache module that supports WebDAV or HTTP PUT method. For example, Apache's WebDAV module is called mod_dav:
http://httpd.apache.org/docs/2.2/mod/mod_dav.html
By default, this module is disabled. You should definitely read the documentation and understand your Apache configuration before allowing write access, be it through mod_dav or otherwise.
MK
Instead, install the Apache webserver software package to your HP-UX:
https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXWSATW312
This provides a "general-purpose" Apache webserver which you can configure as much as you like.
Then read Apache documentation to understand what you're doing.
http://httpd.apache.org/docs/2.2/
There are many ways to configure which parts of your HP-UX filesystem will be accessible as URLs:
http://httpd.apache.org/docs/2.2/urlmapping.html
For example, if you want to make /opt/webdata/dir visible as http://x.x.x.x/dir, you would configure:
Alias /dir /opt/webdata/dir
Another way to achieve the same thing would be to set DocumentRoot to /opt/webdata. (Setting DocumentRoot to / is definitely not recommended!)
To allow displaying of directory listing instead of pre-prepared index.html (or similar), you must add these lines to Apache configuration to activate the Indexes option for your directory:
Options +Indexes
See:
http://httpd.apache.org/docs/2.2/mod/core.html#options
There are various other configuration directives you can use to change the style of the directory listing:
http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html
By default, Apache allows only reading the files (HEAD and GET methods). Furthermore, Apache typically reads files using a special unprivileged user (typically named "httpd" or "apache"): if the directory or file permissions don't allow this user to read the file or directory, Apache cannot send it to the client.
If you want to allow write access through HTTP/HTTPS, you use an Apache module that supports WebDAV or HTTP PUT method. For example, Apache's WebDAV module is called mod_dav:
http://httpd.apache.org/docs/2.2/mod/mod_dav.html
By default, this module is disabled. You should definitely read the documentation and understand your Apache configuration before allowing write access, be it through mod_dav or otherwise.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2010 04:37 AM
тАО09-23-2010 04:37 AM
Re: Access HP-UX server through http
As smhpd.conf can not be modified (http://docs.hp.com/en/466303-004/ch03s01.html)
you would need to start another instance of httpd (in addition to the one started by smh).
Use the default httpd.conf provided and modify the DocumentRoot to point to somwhere let's say /home/apache
DocumentRoot /home/apache
Then enable following the symbolic links in that directory:
Options Indexes FollowSymLinks
Then cd to /home/apache and make the links to the desired directory/directories.
cd /home/apache
ln -sf /some_volume_some_path/dir dir1
{...}
Then make a script that will start the new apache instance and run it. You should enable running this script at boot.
This is only a "regular" apache installation. You can not acces files from the dir directory except if those are owned by the same user used to run the httpd daemon. Even if the httpd daemon was start by root, the current apache implementation would suid the httpd childs that will actually serve HTTP data to clients.
Best regards,
Horia.
you would need to start another instance of httpd (in addition to the one started by smh).
Use the default httpd.conf provided and modify the DocumentRoot to point to somwhere let's say /home/apache
DocumentRoot /home/apache
Then enable following the symbolic links in that directory:
Options Indexes FollowSymLinks
Then cd to /home/apache and make the links to the desired directory/directories.
cd /home/apache
ln -sf /some_volume_some_path/dir dir1
{...}
Then make a script that will start the new apache instance and run it. You should enable running this script at boot.
This is only a "regular" apache installation. You can not acces files from the dir directory except if those are owned by the same user used to run the httpd daemon. Even if the httpd daemon was start by root, the current apache implementation would suid the httpd childs that will actually serve HTTP data to clients.
Best regards,
Horia.
Best regards from Romania,
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2010 04:46 AM
тАО09-23-2010 04:46 AM
Re: Access HP-UX server through http
There is not an easy way to do that (full directory access through HTTP).
Horia.
Horia.
Best regards from Romania,
Horia.
Horia.
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP