Dear friends,
I have an apache httpd server hosting my phpldapadmin, drupal website, other websites.
I tried to achieve the following:
-The phpldapadmin and drupal are meant for internal access only, while the rest of the websites are OK for external access.
[There for i used <VirtualHost 192.168.1.100:80>] for both the phpldapadmin and drupal httpd virtual host configuration
-When i type
http://192.168.1.100 at the browser, by default it would direct to the drupal page
So, i have the following configuration in my httpd.conf virtual host section:
NameVirtualHost *:80
<VirtualHost 192.168.1.100:80>
ServerAdmin admin@shinyang.com.my
DocumentRoot /var/www/html/drupal
ServerName drupal
</VirtualHost>
<VirtualHost 192.168.1.100:80>
ServerAdmin admin@shinyang.com.my
DocumentRoot /var/www/html/ldap
ServerName ldap
</VirtualHost>
Somehow this doesn't work, when i type
http://192.168.1.100, it simply direct to the phpldapadmin page. While i have to type
http://192.168.1.100/drupal into order to access the drupal page.
So basically i want to restrict drupal and phpldapadmin for internet access only, and by default
http://192.168.1.100 -> drupal page, while i can access the ldap page by typing
http://192.168.1.100/ldap
I can't acheive that, maybe it is not possible to have two sites with the same local IP and port. So the other possibility is to change the phpldapadmin to:
<VirtualHost 192.168.1.100:85>
but i think to access a site from local, i can't define the port as this:
http://192.168.1.100/ldap:85, this way doesn't work.
Also i need to set up DNS entry for the internal phpldapadmin and drupal sites, DNS entry cannot with port number.
...not sure if my query is clear, basically if it is possible to setup one IP internally to many domain name or access url.
For external access sure is ok, just for internal configuration..
hope someone might help, thanks