public function store()
 {
     $serverName = Input::get('serverName');
     $documentRoot = Input::get('documentRoot');
     $this->virtualHosts->createVirtualHost($documentRoot, $serverName);
     $this->virtualHosts->createHost($serverName);
     if (Input::get('enableSite')) {
         $this->virtualHosts->enable($serverName);
     }
     $this->apache->execute('reload');
     return Redirect::to('/');
 }
示例#2
0
 public function show()
 {
     $errorLog = $this->apache->getErrorLog();
     return view('apache.errorlog.show', compact('errorLog'));
 }