Forum Moderators: phranque
I have my server up and running and I have a 3rd party Host company handling the DNS for me. I also had Verizon change the reverse DNS for our machine (since they are my business DSL provider) but I am not sure I setup my VirtualHost correctly.
Here is my httpd.conf (for Virtual Host).
Note, I could not get the "DocumentRoot /htdocs/myname" to resolve so I was forced to use a literal path on the server.
Listen 80
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "D:/Program Files/Apache Group/Apache2/htdocs/myname"
ServerName www.mynamne.org
</VirtualHost>
#<VirtualHost *:80>
#DocumentRoot "D:/Program Files/Apache Group/Apache2/htdocs/phpMyAdmin"
#ServerName phpMyAdmin
#</VirtualHost>
So if I goto...
IP 71.x.x.x it goes to www.myname.com site
www.myname.com goes to www.myname.com site
192.168.1.100 goes to www.myname.com site
Which would be OK, but when I used to goto 192.168.1.100/phpMyAdmin/index.php I now get the website index.php page.
Where am I going wrong here.
I appreciate the help,
Don
Alias /phpMyAdmin "D:/Program Files/Apache Group/Apache2/htdocs/phpMyAdmin"
<VirtualHost *:80>
DocumentRoot "D:/Program Files/Apache Group/Apache2/htdocs/myname"
ServerName www.mynamne.org
</VirtualHost> You can place the Alias as well into your virtual host container which woult alias this URL-path only, if the virtual host contaioner matched.
I had to put in a virtual Directory that uses another port based on the original name for the 1st Virtual Directory to get into mysql. Here is what I did, was this a hack way or the right way?
<VirtualHost 192.168.1.102:9081>
DocumentRoot "D:/Program Files/Apache Group/Apache2/htdocs/phpMyAdmin"
ServerName www.myname.org
ServerAlias www.myname.org
DirectoryIndex index.php
</VirtualHost>
Thanks,
Don