php - Apache - Browsing of any domain URL is pointing to same folder -
we have hosted multiple php websites in different domains in same server. each domain have own folder under /var/www/html. e.g.
example1.com pointing /var/www/html/example1.com example2.com pointing /var/www/html/example2.com example3.com pointing /var/www/html/example3.com
etc..
since saturday, when browse example1.com or example2.com
or example3.com
, showing same content in browser. means every time browse showing website content /var/www/html/example3.com folder. i'm not sure how change happened. may 1 of our ex-employees changed this.
so checked httpd.conf file in /etc/httpd/conf
. here documentroot set correctly domains. i'm new web administration, i'm not sure i've correct make websites point right folder.
- what problem? how rectify this?
- do need correct in http.conf file or .htaccess file in every domain folders?
i'm struggling since yesterday. appreciated.
thanks in advance..
finally i'm able resolve issue. have 4 websites different domains running in server. couple of websites, under virtualhost tag, documentroot , servername missing. after added values , restarted apache server, started working.
the incorrect entry looking this:
<virtualhost *:80> serveradmin demo@demo.com serveralias www.example1.com </virtualhost>
i changed mentioned below:
<virtualhost *:80> serveradmin demo@demo.com servername example1.com serveralias www.example1.com documentroot /var/www/html/example1.com/ </virtualhost>
thank help.
Comments
Post a Comment