LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-14-2013, 10:30 PM   #1
gellpak
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
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.

Last edited by gellpak; 01-14-2013 at 10:31 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Plex Media Server on Slackware64 Gee Man Slackware 1 10-01-2012 06:12 PM
LXer: Plex Media Server + Roku = Awesome LXer Syndicated Linux News 0 08-27-2012 12:30 PM
Striped Plex with concatenated subdisks per column vikas027 Linux - Software 0 05-09-2012 09:45 AM
Network broken, most services work, others refuse. Adrian Baker Linux - Networking 3 01-26-2008 05:17 PM
HR 7.3 - Has the directory structure has been restructured ??? freddymio Linux - Newbie 3 05-26-2002 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration