- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Apache Simple Local Virtual Hosts
Operating System - HP-UX
1825060
Members
5209
Online
109679
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
Forums
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
тАО03-10-2006 02:08 AM
тАО03-10-2006 02:08 AM
Apache Simple Local Virtual Hosts
Hi,
I am trying to set up a virtual host on our local development system hp9000 rp2470 (HP-UX B.11.11/Apache 1.3.19).
What I did:
/etc/hosts
192.###.##.## hp9000 hp9000.pol
Hostname is hp9000 and alias hp9000.pol
/opt/apache/conf/httpd.conf
### Section 1: Global Environment
ServerType standalone
ServerRoot /opt/apache
BindAddress *
### Section 2: 'Main' server configuration
Port 80
Listen 80
Servername hp9000
DocumentRoot "/samba_homes/www"
### Section 3: Virtual Hosts
NameVirtualHost *
ServerName hp9000
DocumentRoot /samba_homes/www
ErrorLog /samba_homes/www/error_log
CustomLog /samba_homes/www/access_log common
TransferLog /opt/apache/logs/access_log
DocumentRoot /samba_homes/www/pol
ServerName hp9000.pol
ErrorLog /samba_homes/www/pol/error_log
TransferLog /samba_homes/www/pol/access_log
When I enter hp9000 in my browser, I see the content of /samba_homes/www directory. This is good, this works (not bad for a first time).
When I enter hp9000.pol in my browser, I hoped to see the content of the /samba_homes/www/pol directory. But the browser tells me it can not find it.
What did I do wrong or what did I forget to do.
Thank you very much if you can help me.
Kind regards
Rob
I am trying to set up a virtual host on our local development system hp9000 rp2470 (HP-UX B.11.11/Apache 1.3.19).
What I did:
/etc/hosts
192.###.##.## hp9000 hp9000.pol
Hostname is hp9000 and alias hp9000.pol
/opt/apache/conf/httpd.conf
### Section 1: Global Environment
ServerType standalone
ServerRoot /opt/apache
BindAddress *
### Section 2: 'Main' server configuration
Port 80
Listen 80
Servername hp9000
DocumentRoot "/samba_homes/www"
### Section 3: Virtual Hosts
NameVirtualHost *
ServerName hp9000
DocumentRoot /samba_homes/www
ErrorLog /samba_homes/www/error_log
CustomLog /samba_homes/www/access_log common
TransferLog /opt/apache/logs/access_log
DocumentRoot /samba_homes/www/pol
ServerName hp9000.pol
ErrorLog /samba_homes/www/pol/error_log
TransferLog /samba_homes/www/pol/access_log
When I enter hp9000 in my browser, I see the content of /samba_homes/www directory. This is good, this works (not bad for a first time).
When I enter hp9000.pol in my browser, I hoped to see the content of the /samba_homes/www/pol directory. But the browser tells me it can not find it.
What did I do wrong or what did I forget to do.
Thank you very much if you can help me.
Kind regards
Rob
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2006 02:14 AM
тАО03-10-2006 02:14 AM
Re: Apache Simple Local Virtual Hosts
Do you have a "Directory" entry for each DocumentRoot directory you want to establish? Also, do you have authentication setup? If you are using .htaccess files, you'll need one in each directory.
mark
mark
the future will be a lot like now, only later
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2006 02:39 AM
тАО03-10-2006 02:39 AM
Re: Apache Simple Local Virtual Hosts
Hi Mark,
Yes I have:
ServerName hp9000
DocumentRoot /samba_homes/www
ErrorLog /samba_homes/www/error_log
CustomLog /samba_homes/www/access_log common
TransferLog /opt/apache/logs/access_log
Options Indexes FollowSymLinks ExecCGI MultiViews
AllowOverride None
Order allow,deny
Allow from all
DocumentRoot /samba_homes/www/pol
ServerName hp9000.pol
ErrorLog /samba_homes/www/pol/error_log
TransferLog /samba_homes/www/pol/access_log
Options Indexes FollowSymLinks ExecCGI MultiViews
AllowOverride None
Order allow,deny
Allow from all
Both directories have a .htaccess file:
PassEnv "SHLIB_PATH"
PassEnv "LIBPATH"
PassEnv "LD_LIBRARY_PATH"
PassEnv "EQ_DBSERVER"
I do not have an authentication setup. Do I have to?
Kind regards
Rob
Yes I have:
ServerName hp9000
DocumentRoot /samba_homes/www
ErrorLog /samba_homes/www/error_log
CustomLog /samba_homes/www/access_log common
TransferLog /opt/apache/logs/access_log
Options Indexes FollowSymLinks ExecCGI MultiViews
AllowOverride None
Order allow,deny
Allow from all
DocumentRoot /samba_homes/www/pol
ServerName hp9000.pol
ErrorLog /samba_homes/www/pol/error_log
TransferLog /samba_homes/www/pol/access_log
Options Indexes FollowSymLinks ExecCGI MultiViews
AllowOverride None
Order allow,deny
Allow from all
Both directories have a .htaccess file:
PassEnv "SHLIB_PATH"
PassEnv "LIBPATH"
PassEnv "LD_LIBRARY_PATH"
PassEnv "EQ_DBSERVER"
I do not have an authentication setup. Do I have to?
Kind regards
Rob
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.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP