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('/'); }
public function show() { $errorLog = $this->apache->getErrorLog(); return view('apache.errorlog.show', compact('errorLog')); }