drupal - Apache Refuses to Start when Enabling Second Site in Sites-Enabled/ -


i've been trying hours newer sites configuration work:

i have (2) site configuration files running on same server, under: /etc/apache2/sites-enabled/site1 /etc/apache2/sites-enabled/site2

if do:

sudo a2dissite site2 sudo service apache2 reload sudo service apache2 start 

the server show content site1

now, if enable site1 , site2 like:

sudo a2ensite site1 sudo a2ensite site2 sudo service apache2 reload sudo service apache2 start 

it fail start apache.

here site2 config:

<virtualhost *:80>   servername site2.mysite.com   documentroot /var/www/mysite2   loglevel warn    #log files   errorlog /var/www/mysite2/logs/error.log   customlog /var/www/mysite2/logs/access.log combined </virtualhost>  <directory /var/www/mysite2/>   options followsymlinks   allowoverride   <filesmatch "\.(engine|inc|info|install|module|profile|po|schema|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|entries.*|repository|root|tag|template)$">     order allow,deny   </filesmatch>   rewriteengine on   rewritebase /    rewritecond %{http_host} ^site2\.mysite\.org$ [nc]   rewriterule ^(.*)$ http://site2.mysite.com/$1 [l,r=301]    #rewrite urls of form 'index.php?q=x'.   rewritecond %{request_filename} !-f   rewritecond %{request_filename} !-d   rewriterule ^(.*)$ index.php?q=$1 [l,qsa] </directory> 

what doing wrong here?

this issue log file (and directory) not existing, in case was

/var/www/mysite2/logs/error.log 

this determined errors being logged in apache configuration at:

/var/log/apache2/error.log 

hope helps in future.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -