LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Restructured Apache, now some services (plex, newsnab) are broken (https://www.linuxquestions.org/questions/linux-server-73/restructured-apache-now-some-services-plex-newsnab-are-broken-4175445640/)

gellpak 01-14-2013 10:30 PM

Restructured Apache, now some services (plex, newsnab) are broken
 
In the process of building out a media server, and had plex server running nicely. I then installed newsnab, and it takes control of the root of the web server such that http://[domainname] becomes newsnab.

My server has a domain name attached to it which I want to use otherwise. So, to fix this I did a lot of reading and started changing apache around. Set things up as follows:

Web root is stored in /var/www/[domainname].com/
Newsnab installed itself in /var/www/newsnab. It's webroot is at /var/www/newsnab/www/

I created the following file for Apache:
/etc/apache2/sites-enabled/[domainname].com

with the contents:
Code:

<virtualhost *:80>

  # Admin email, Server Name (domain name) and any aliases
  ServerAdmin webmaster@[domainname].com
  ServerName  [domainname].com
  ServerAlias www.[domainname].com
  ServerAlias [domainname]


  # Index file and Document Root (where the public files are located)
  DirectoryIndex index.html index.htm index.php
  DocumentRoot /var/www/[domainname].com


  # Aliases
  Alias /newznab /var/www/newznab/www


  # Custom log file locations
  LogLevel warn
  ErrorLog  /var/www/logs/error.log
  CustomLog /var/www/logs/access.log combined

</virtualhost>

As you can see I aliased the newsnab directory to get access to it from a folder of my domain name.

That works, until I try to log in. I hit [domainname].com/newsnab/admin and I get the following:
Code:

Not Found

The requested URL /var/www/newznab/www/index.php was not found on this server.

Apache/2.2.22 (Ubuntu) Server at [domainname].com Port 80

Similarly, my previously functioning plex web admin now tells me that
Quote:

Oops! Google Chrome could not connect to 192.168.1.100:32400
Though I can still access the media via myplex and the plex apps it's connected to.


All times are GMT -5. The time now is 10:23 AM.