LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-17-2014, 06:39 PM   #1
miguelg
Member
 
Registered: Oct 2009
Location: UK
Distribution: Xubuntu
Posts: 31

Rep: Reputation: Disabled
Question Strange behaviour with apache virtualhost


I've got Bugzilla set up as a virtualhost (see definition below) accessible only within a LAN that is behaving strangely. If I point the browser to bugzilla.daedalus, Bugzilla does not load up and instead I'm presented with the perl script (page doesn't render); it renders correctly if I navigate to daedalus instead though.

Why?

Code:
<VirtualHost *:80>
  ServerName bugzilla.daedalus
  ServerAdmin ****@gmail.com       # censored

  DocumentRoot /var/www/bugzilla-4.4.2

  <Directory /var/www/bugzilla-4.4.2>
    Options +Indexes +ExecCGI -MultiViews +SymLinksIfOwnerMatch +FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    AddHandler cgi-script .cgi .pl
  </Directory>
</VirtualHost>
Running Apache 2.4.6.

Last edited by miguelg; 04-17-2014 at 06:40 PM. Reason: Fix title
 
Old 04-17-2014, 07:13 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,647

Rep: Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655
A bit of a different note

you might want to change this part
Quote:
AllowOverride All
Order allow,deny
Allow from all
that makes the folder open to the WHOLE wide world .Not just the lan but EVERYONE in the world

something like ---
Code:
Order deny,allow
Deny from all
Allow from 123.456.789.012
replace "123.456.789.012" with the address of the lan
see the Apache documents Vhost section
http://httpd.apache.org/docs/2.4/vhosts/

Last edited by John VV; 04-17-2014 at 07:14 PM.
 
Old 04-18-2014, 12:35 AM   #3
miguelg
Member
 
Registered: Oct 2009
Location: UK
Distribution: Xubuntu
Posts: 31

Original Poster
Rep: Reputation: Disabled
John, many thanks for the pointer; it had completely eluded me!

Anyone has any idea why Apache is behaving in the manner I described in my OP?
 
Old 04-18-2014, 01:52 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,647

Rep: Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655
is mod perl installed and turned on ?

a good test for that is the log gui awstats
 
Old 04-18-2014, 03:35 AM   #5
miguelg
Member
 
Registered: Oct 2009
Location: UK
Distribution: Xubuntu
Posts: 31

Original Poster
Rep: Reputation: Disabled
It is, yes. Got the following when querying apache's loaded modules:

Code:
$ a2query -m perl
perl (enabled by maintainer script)
 
Old 04-19-2014, 08:38 AM   #6
miguelg
Member
 
Registered: Oct 2009
Location: UK
Distribution: Xubuntu
Posts: 31

Original Poster
Rep: Reputation: Disabled
Bump!

Anybody has any more ideas?
 
Old 04-24-2014, 02:41 PM   #7
miguelg
Member
 
Registered: Oct 2009
Location: UK
Distribution: Xubuntu
Posts: 31

Original Poster
Rep: Reputation: Disabled
Sigh. The issue was being caused by the virtualhost's conf file not having a .conf extension. Apparently it's a new requirement introduced in Apache 2.4.

Note to developers: it could at least emit a warning, if not to stdout, at least to the server log!
 
  


Reply

Tags
apache2, virtualhost


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
How convert float to str in qt4/C++ dubiels Programming 4 05-31-2013 04:38 AM
[SOLVED] Python cannot concatenate 'str' and 'NoneType' objects madsovenielsen Programming 4 06-24-2010 02:44 PM
How to apply gchar *str[] to a GValue gktandc Programming 3 04-23-2009 01:33 AM
int to str? kalleanka Programming 2 09-15-2007 09:49 AM
str.chomp! masternerdguy Programming 3 07-17-2007 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:47 AM.

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