Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-16-2012, 04:16 PM   #16
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,199

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397

another (possibly overkill) solution is Interface Aliases

each with their own IP address and switching to IP based virtual hosting.For an example, I used it once to host multiple SSL based websites on the same server.
Old 12-30-2012, 01:06 PM   #17
Registered: Nov 2008
Distribution: CentOS/Ubuntu/Debian/Mint
Posts: 979

Original Poster
Rep: Reputation: Disabled
Originally Posted by custangro View Post
I don't understand why you are using Named Virtual Hosts if you're not using DNS. It simply won't work like how you're thinking it will.

If all you want is to be able to access the site with

http://<ip address>/<site>

Then just put you sites under...

The you can access it with...

http://<ip address>/site1
http://<ip address>/site2
http://<ip address>/site3
http://<ip address>/site4

Something in Newznab's configuration or the way the app was written... Outside of a VH it wouldnt work... It was constantly searching for the scripts and php files under /www/ (Apache's root) whereas in real life the files were under /www/newznab/www/ (where they should be). I believe it is because whoever wrote newznab had in mind that it would be the main web application running on the webserver but in my case, its not.

With VH, all is fine now!!!!

Thanks to all who helped here!
Old 02-21-2013, 06:02 PM   #18
LQ Newbie
Registered: Feb 2013
Location: Milwaukee, WI
Distribution: Slackware 14
Posts: 1

Rep: Reputation: Disabled

Can you post your final diffs from the files you changed? I would like to see your final solution.
Old 02-24-2013, 09:51 PM   #19
Registered: Nov 2008
Distribution: CentOS/Ubuntu/Debian/Mint
Posts: 979

Original Poster
Rep: Reputation: Disabled
Of course! let me know exactly what you want to see in my config..

For now, apache's extra vhost config file:

NameVirtualHost *:80

<VirtualHost *:80>
    ServerName localhost
    DocumentRoot /var/www/htdocs/

<VirtualHost *:80>
	ServerName newznabplus
	<Directory /var/www/htdocs/newznabplus/www/>
		Options FollowSymLinks
		AllowOverride All
		Order allow,deny
		allow from all
	DocumentRoot /var/www/htdocs/newznabplus/www
I did not change anything else.... Once this file was modified, all was fine...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
apache and cgi VirtualHosts gabsik Linux - Server 1 10-23-2008 05:20 AM
Apache Virtualhosts and subdomains arew264 Linux - Networking 1 01-03-2006 09:53 AM
Apache VirtualHosts Problem stratisphere Linux - Newbie 4 11-27-2004 01:20 AM
VirtualHosts & apache 2.0.48 TiCkO Linux - Networking 2 07-13-2004 04:20 PM
Virtualhosts in apache. where am i going wrong. SSBN Linux - Networking 20 07-11-2003 05:02 AM

All times are GMT -5. The time now is 04:05 PM.

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