I have one issue with my apache virtual hosting...
I have registered one domain for my personal usage purpose (exp: sandeep.com), this sandeep.com hosting done in office linux rhel-5 server, For this hosting i have modified /etc/httpd/conf/httpd.conf file and mentioned below things in end of the file...
ServerAlias sandeep.com *.sandeep.com
CustomLog logs/www.sandeep.com-access_log common
also given office public IP and sandeep.com in /etc/hosts file...
here i have 2 doubts,
1) whenever I access this website by direct public IP its opening as well as its opening with name (www.sandeep.com
) , Here I don't want to open website by IP address, if office people open direct IP its showing my personal website in IP , that i dont want... How to avoid this issue? (on this office not configured any websites, just httpd service is running, even i dont want to open my personal website by IP address...)
2) when i try with (www.sandeep.com
) its working fine but when i try for (sandeep.com) its redirecting to (http://sandeep.com
) but not opening website.. its giving error on this...how can i make my site to access for "www.sandeep.com" "sandeep.com" http://sandeep.com
Thanks and Regards,