Hi all,
I have situation like this
1) Centos 6.5 installed with PHP,Mysql and Apache 2.2
2) A domain name (godaddy) pointing to this server via a static ip
3) Port forwarding in the ISP Router to redirect all the request to port 80 be redirected to this server via 80 port
Everything works fine when the site is accessed from outside the network. But when its accessed inside LAN its saying failed to load no data received.
i have hosted the site using default root for the internet access and i have tried the virtual host to get the intranet access work
my httpd conf file looks like this
### Section 2: 'Main' server configuration
ServerAdmin root@localhost
UseCanonicalName Off
DocumentRoot "/var/www/html/xxxxx/web/admin/"
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin
webmaster@xxxxxx.in
DocumentRoot /var/www/html/xxxxx/web/admin
ServerName
www.xxxxxxx.in
ServerAlias xxxxxxxxx.in
ErrorLog logs/xxxxxxx-error_log
CustomLog logs/xxxxxx-access_log common
</VirtualHost>
1)How can i make it happen such that all clients can access the same site via a site name other than typing the ip address in browser.
2) Is there any method by which i can do it other than editing the hosts file in every client machine ???