LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 12-16-2012, 03:16 PM   #16
frieza
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,010

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352

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, 12:06 PM   #17
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 965

Original Poster
Rep: Reputation: 44
Quote:
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...

Code:
/var/www/htdocs/
               /site1
               /site2
               /site3
               /site4
The you can access it with...

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

--C
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, 05:02 PM   #18
moduleWolf
LQ Newbie
 
Registered: Feb 2013
Location: Milwaukee, WI
Distribution: Slackware 14
Posts: 1

Rep: Reputation: Disabled
@lpallard

Can you post your final diffs from the files you changed? I would like to see your final solution.
 
Old 02-24-2013, 08:51 PM   #19
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 965

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


For now, apache's extra vhost config file:

Code:
NameVirtualHost *:80

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

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apache and cgi VirtualHosts gabsik Linux - Server 1 10-23-2008 04:20 AM
Apache Virtualhosts and subdomains arew264 Linux - Networking 1 01-03-2006 08:53 AM
Apache VirtualHosts Problem stratisphere Linux - Newbie 4 11-27-2004 12:20 AM
VirtualHosts & apache 2.0.48 TiCkO Linux - Networking 2 07-13-2004 03:20 PM
Virtualhosts in apache. where am i going wrong. SSBN Linux - Networking 20 07-11-2003 04:02 AM


All times are GMT -5. The time now is 11:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration