niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Apache
serving millions of files
Post new topic   Reply to topic Page 3 of 61 [905 Posts] View previous topic :: View next topic
Goto page:  Previous  1, 2, 3, 4, 5, ..., 59, 60, 61 Next
Author Message
Leif W
*nix forums beginner


Joined: 07 Feb 2005
Posts: 12

PostPosted: Thu Feb 10, 2005 2:15 pm    Post subject: Re: Need a Virtual Host Refresher Course Reply with quote

Quote:
"David Blomstrom" <david_blomstrom@yahoo.com>; 2005-02-09@16:56 GMT-5

OK, this is making more sense, but I'm still missing
something. I asked some questions about XAMPP on
ApacheFriend's forum, too, and someone suggested I try
the following:

NameVirtualHost *:80

Well, as I said, * means "listen to any ip", but I have noticed a few
subtle problems, so I use 0.0.0.0 instead of *. But anyways this also
makes Apache listen (and thus respond to) requests on the outside world,
opening up the security hole I mentioned. 127.0.0.1 is the special
address that means "this box in front of me to which this keyboard,
video, and possibly mouse are directly connected", in other words,
localhost.

Quote:
VirtualHost *:80
ServerName localhost
DocumentRoot /apachefriends/xampp/htdocs
/VirtualHost

VirtualHost *:80
ServerName sites
ServerAlias sites *.sites
DocumentRoot c:\sites
/VirtualHost

VirtualHost *:80
ServerName geobop
ServerAlias geobop *.geobop
DocumentRoot c:\sites\geobop
/VirtualHost

But with this config, where are the logs sent? Type in a browser:
http://sites/geobop/logs/error-log. The whole idea is fundamentally
unsound. I would ask the reasoning for the "sites" site. Just to get
an autogenerated list of what sites are available? You could perhaps
just write a script to do that and run it from within another site
without giving away too much. Anyways, if you go ahead with this
config, at the very least change the * to 127.0.0.1 or don't say I
didn't warn you. Posting a site to the net by using * when you're
learning PHP and Apache can be a bad combination. Not only are you more
likely to write insecure PHP code, but you're also less likely to notice
someone exploting it. Well we all have to learn the hard way sometimes.
;-)

Quote:
So I changed alll my sites to this format, and it
works perfectly. I can preview every site at
http://mysite/ AND I can access XAMPP's home page at
http://localhost/

Then I did an experiment. I changed two websites to
this format:

VirtualHost 127.0.0.1:80
ServerAdmin webmaster@geoworld
ServerName geoworld:80
ServerAlias *.geoworld
CustomLog
"C:/sites/geoworld/logs/geoworld-access.log" vcombined
ErrorLog
"C:/sites/geoworld/logs/geoworld-error.log"
DocumentRoot "c:/sites/geoworld"
Directory "c:/sites/geoworld"

These two are missing the public_html.

DocumentRoot "c:/sites/geoworld/public_html"
<Directory "c:/sites/geoworld/public_html">


Quote:
Options None
/Directory
ScriptAlias /cgi-bin/ "c:/sites/geoworld/cgi-bin/"
Directory "C:/sites/geoworld/cgi-bin"
Options +ExecCGI
/Directory


This specific ScriptAlias is needed only if your site uses programs
located in /cgi-bin/. I gave it as an example, but it might help to
comment out for now to simplify the situation. Just get the idea of the
DocumentRoot first.

Quote:
/VirtualHost

I also put one of these websites inside a folder named
public_html...

C:/sites/public_html/geozoo/

After I restarted my computer, I couldn't access
either website, nor could I access XAMPP at
http://localhost/

Check the main server's error_log and it would tell you what's wrong.
Probably in C:/ApacheFriends/XAMPP/Apache/logs/error_log. For the
specific location, consult the main server config, start at the top of
the file and search for the first uncommended ErrorLog not inside a
VirtualHost. Try running Apache from the command line to check the
syntax and to start. If you change httpd.conf, do NOT reboot the
machine! There is no need to waste your time. Just "restart" the
Apache server, not "restart" the Windows OS. The restart terminology in
Unix means to reread a config file, or in some cases actually stop
(kill) a program and start a new instance, in effect rereading the
config file. It doesn't mean the "restart" in the Windows/Shutdown
context. The only time you might need to "stop" Apache and then
"restart" Apache is if you make changes to SSL stuff, maybe other times.
In this case, you explicitly issue a "stop" and "start" command.

Command Prompt

C:\ -> apache -t
Syntax OK

C:\ -> apacke -k start

C:\ -> apache -k restart

C:\ -> apache -k stop

If you get "is not recognized..." then specify the full path to Apache.
You can hit the TAB key for completion in WinXP. Example below may not
reflect your actual folder names or locations. Use "dir" in that case.
When you get tired of typing the full path, then add the path to your
PATH environment variable. Add it for only the current Command Prompt
with the "path" command. Add it permanently to the registry required
Administrator access in HKLM\System\CurrentControlSet\Control\Session
Manager\Environment\Path.

C:\Apa<tab>
C:\ApacheFriends\<tab>
C:\ApacheFriends\XAMPP\<tab>
C:\ApacheFriends\XAMPP\Apache\bin\apache -t

path %PATH%;C:\ApacheFriends\XAMPP\Apache\bin\

Quote:
I couldn't access GeoZoo (the site inside public_html)
at http://geozoo or http://public_html/geozoo/

Apache won't mysteriously add "public_html" to a path name if it's
missing. DocumentRoot "C:/sites/geozoo" won't look into
C:/sites/geozoo/public_html. It relies upon what it's told to do, and
if it fails, it leaves helpful messages in your error log (saying it
could not find a file, permission error, and so on). You MUST read the
error log. If you do not know where the error log is, find it as I
described above. If there's a specific error which you don't
understand, then post it here and someone can help. If you can't find
any timestamps which match the time that you tried something, maybe you
got the wrong error log, or you aren't even logging errors, which is
what you should do first, log the errors and find them.

Quote:
One or both of the websites I modified asked for a
password when I tried to preview them on a browser.
Maybe that's a clue as to what I'm doing wrong. Any
tips?

That's totally different... I have no idea. You probably have "Allow
All" in you main server config, allowing AuthOverride, and the default
name is an .htaccess file placed in a folder. Or else some application
you hit sends an auth.

Leif



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
David Blomstrom
*nix forums Guru Wannabe


Joined: 09 Feb 2005
Posts: 122

PostPosted: Thu Feb 10, 2005 7:53 pm    Post subject: Re: Need a Virtual Host Refresher Course Reply with quote

I've been playing around with various settings, trying
to get this script to work. It appears that the
CustomLog and/or ErrorLog are the source of the
password problem, so I commented them out for now.
(Also, should the logs use backward slashes like the
DocumentRoot?)

<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@geobop.org
ServerName geozoo:80
ServerAlias geozoo *.geozoo
DocumentRoot c:\sites\geozoo\public_html
# CustomLog "C:\sites\geozoo\logs\geozoo-access.log"
vcombined
# ErrorLog "C:\sites\geozoo\logs\geozoo-error.log"
</VirtualHost>

It was working beautifully; I was able to preview a
site in C:/sites/geozoo/public_html at http://geozoo/

Then I made a couple minor modications. I think I
added the ServerAdmin line and added "80" at the end
of the ServerName line.

Now, all I see is the home page of
C:/sites/geozoo/public_html, regardless of the URL I
type in. I even see if if I type in http://localhost/

Does anyone have any idea what's going on???

Thanks.


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Milan Andric
*nix forums beginner


Joined: 10 Feb 2005
Posts: 4

PostPosted: Thu Feb 10, 2005 7:53 pm    Post subject: Re: Problem with mod_dir and mod_proxy (Apache 2.0.52) Reply with quote

Here's a stab in the dark, but have you tried reordering the
LoadModules lines in your config to make mod_proxy come before mod_dir?

Or I wonder if there is anyway to give more weight to certain modules
over others?

I'm also wondering about module firing order (not sure how to term it)
since i have a problem where a corrupt .htaccess file is processed
before a redirect config. I'd think that if I'm redirecting a URL in httpd.conf
there's no reason to process the .htaccess file? In this case the .htaccess
breaks the redirect.

any comments?

--
Milan

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Milan Andric
*nix forums beginner


Joined: 10 Feb 2005
Posts: 4

PostPosted: Thu Feb 10, 2005 7:57 pm    Post subject: Re: Problem with mod_dir and mod_proxy (Apache 2.0.52) Reply with quote

On Thu, 10 Feb 2005 12:53:49 -0800, Milan Andric <mandric@gmail.com> wrote:
Quote:
Here's a stab in the dark, but have you tried reordering the
LoadModules lines in your config to make mod_proxy come before mod_dir?

Or I wonder if there is anyway to give more weight to certain modules
over others?

I'm also wondering about module firing order (not sure how to term it)
since i have a problem where a corrupt .htaccess file is processed
before a redirect config. I'd think that if I'm redirecting a URL in httpd.conf
there's no reason to process the .htaccess file? In this case the .htaccess
breaks the redirect.

oh whoops, the apache version in my scenario above is on 2.0.50

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
MELindberg
*nix forums beginner


Joined: 10 Feb 2005
Posts: 8

PostPosted: Thu Feb 10, 2005 11:24 pm    Post subject: Newbie questions ... Reply with quote

Hi Gang

Thanks in advance. I'm really rather new at this. Would someone be so
kind as to give me some general information as to what the following
lines in my error log mean. It seems to be a restart (or part of a
restart as I deleted some of the lines that don't need any explanation
really ... the individual domains involved, ... it's a virtual hosting
setup} but it is happening every night at the indicated time and is not
"scheduled" as far as I can see, or the result of a direct command ...
at least not from me. There is no apparent difference in this basic
'list', set of log files, and when I actually force a restart, only the
system time does not change except when I manually force a restart
{graceful}. This seems quite odd and I'm wondering if perhaps I've been
hacked in some fashion. At one point ... a couple of weeks ago. All my
logs "vanished". Errors, access, the works, were all blank from one day
to the next. I don't recall seeing this nightly event prior to that
event. There is nothing sensitive on the specific machine in question,
so I.m not concerned from a realistic standpoint. But if the machine has
been invaded in some fashion I will want to clean and move the data
files and wipe and reinstall the system files... which will be a pain in
the gazebo Wink Basically I guess I'm wondering if I am correct in my
assessment of the meaning of a list like this, is it indeed a restart
sequence as it appears to be, or could something else be causing this
set of events.

[Sun Feb 06 04:02:26 2005] [notice] Digest: generating secret for digest
authentication ...
[Sun Feb 06 04:02:26 2005] [notice] Digest: done
[Sun Feb 06 04:02:26 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Sun Feb 06 04:02:26 2005] [notice] LDAP: SSL support unavailable
[Sun Feb 06 04:02:27 2005] [notice] httpdmon: httpdmon_init
[Sun Feb 06 04:02:27 2005] [notice] bandwidth monitoring enabled
(mapping file: /etc/virtualhosting/mappings/apache.domainmap)
[Sun Feb 06 04:02:28 2005] [notice] Apache/2.0.50 (Fedora) configured --
resuming normal operations
exclog: signal received 15
[Sun Feb 06 04:10:03 2005] [notice] SIGHUP received. Attempting to restart
exclog: top-level log:/var/log/httpd/access_log

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Marian D Marinov
*nix forums beginner


Joined: 07 Feb 2005
Posts: 10

PostPosted: Thu Feb 10, 2005 11:51 pm    Post subject: Re: Newbie questions ... Reply with quote

This: [Sun Feb 06 04:10:03 2005] [notice] SIGHUP received.  Attempting to
restart

Means that you have given apache a SIGHUP by entering kill -HUP apache_pid or
starting a script which starts this command.

When Apache receive SIGHUP it trys to restart if there is no problem Apache
Restarts and resume normal operation.
And because you don't see anything odd I'll give you some point of start.
Using crontab command (as root) you can see what crontab entrys you have
crontab -l username
gives you the information from the users crontab(list of scheduled things).
Type this commant with the root,nobody,www-data and apache usernames to see
if there is someting.
It is most likely that you have been hacked in some way. There is another
thing that you should do. Go to /tmp and seek for some odd executable
filenames as f3, r0nin,yes,init and so on... And delete them. Enter
ps aux|grep apacheusername
to see if there are any process that are runned by the apache user!
then kill them.
If you have phpBB or phpNuke get the lates version of the code.

That's all, what I can help you.

Regards
M.Marinov


--
| Registered Linux User #309995 at http://counter.li.org
| One Planet, One Internet.
| We Are All Connected.
\__________________

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
MELindberg
*nix forums beginner


Joined: 10 Feb 2005
Posts: 8

PostPosted: Fri Feb 11, 2005 12:49 am    Post subject: Re: Newbie questions ... Reply with quote

Thanks Kindly. Your help is most appreciated. ... Wish I hadn't been
right this time :(

Sincerely
Myron Lindberg

Marian D Marinov wrote:

Quote:
This: [Sun Feb 06 04:10:03 2005] [notice] SIGHUP received. Attempting to
restart

Means that you have given apache a SIGHUP by entering kill -HUP apache_pid or
starting a script which starts this command.

When Apache receive SIGHUP it trys to restart if there is no problem Apache
Restarts and resume normal operation.
And because you don't see anything odd I'll give you some point of start.
Using crontab command (as root) you can see what crontab entrys you have
crontab -l username
gives you the information from the users crontab(list of scheduled things).
Type this commant with the root,nobody,www-data and apache usernames to see
if there is someting.
It is most likely that you have been hacked in some way. There is another
thing that you should do. Go to /tmp and seek for some odd executable
filenames as f3, r0nin,yes,init and so on... And delete them. Enter
ps aux|grep apacheusername
to see if there are any process that are runned by the apache user!
then kill them.
If you have phpBB or phpNuke get the lates version of the code.

That's all, what I can help you.

Regards
M.Marinov






---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Nelson, Robert D.
*nix forums beginner


Joined: 09 Feb 2005
Posts: 13

PostPosted: Fri Feb 11, 2005 7:58 pm    Post subject: RE: Change test to welcome page Reply with quote

Mike:


Quote:
I am a newbie.. and will like to change my test page from
default page and
add my own page?

Welcome.

You'll eventually want to spend some quality time with docs to find your
best Apache setup for what you want to do. In the mean time, simply replace
the default test page with your own HTML file. The default page is probably
in './htdocs'. To know for sure, look for the 'DocumentRoot' in your
httpd.conf file.

~ Robert


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
The Disguised Jedi
*nix forums beginner


Joined: 07 Feb 2005
Posts: 5

PostPosted: Fri Feb 11, 2005 9:47 pm    Post subject: Re: What's my IP? Reply with quote

that is the standard loopback address, and is always valid, since it
just will go out and right back into your machine...


On Fri, 11 Feb 2005 12:32:31 -0800 (PST), David Blomstrom
<david_blomstrom@yahoo.com> wrote:
Quote:
My virtual hosts look like this:

VirtualHost *:80
ServerName geobopcom
ServerAlias geobopcom *.geobopcom
DocumentRoot c:\sites\geobopcom
/VirtualHost

If I replace the asterisk in even the first line...

NameVirtualHost *:80

...with this...

NameVirtualHost 127.0.0.1:80

...it wrecks everything. When I click on a link to a
local website I used to access at http://geobop/, it
takes me to http://geobop/xampp/splash.php, the home
page of the preconfigured Apache/PHP/MySQL package I'm
using, which I normally access at http://localhostl/.

So I'm wondering if there's something wrong with the
127.0.0.1. Is this a standard IP address for
computers, or should I verify that I'm using the right
number? I'm not even sure how to determine my
computer's IP address.

Thank you.

__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




--
The Disguised Jedi
disguised.jedi@gmail.com

Now you have my $0.02. Or .01 Pounds, .014 Euros, or $0.025 CAN. I'm
already internationally compatible!
PHP rocks!
"Knowledge is Power. Power Corrupts. Go to school, become evil"

Disclaimer: Any disclaimer attached to this message may be ignored.
This message is Certified Virus Free

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Gary W. Smith
*nix forums addict


Joined: 12 Feb 2005
Posts: 70

PostPosted: Sat Feb 12, 2005 1:36 am    Post subject: RE: What's my IP? Reply with quote

You're using virtual hosts. You either need to specify the FQDN that
the virtual host will is answering to or use the IP address of the local
machine.



Quote:
-----Original Message-----
From: David Blomstrom [mailto:david_blomstrom@yahoo.com]
Sent: Friday, February 11, 2005 5:40 PM
To: users@httpd.apache.org; The Disguised Jedi
Subject: Re: [users@httpd] What's my IP?


--- The Disguised Jedi <disguised.jedi@gmail.com
wrote:

that is the standard loopback address, and is always
valid, since it
just will go out and right back into your machine...

Thanks. So does anyone have any idea how to
troubleshoot this problem? If replacing an asterisk
with 127.0.0.1 causes all my websites to display the
same page I normally see at http://localhost/, what's
the first thing you'd check?




__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
David Blomstrom
*nix forums Guru Wannabe


Joined: 09 Feb 2005
Posts: 122

PostPosted: Sat Feb 12, 2005 1:40 am    Post subject: Re: What's my IP? Reply with quote

--- The Disguised Jedi <disguised.jedi@gmail.com>
wrote:

Quote:
that is the standard loopback address, and is always
valid, since it
just will go out and right back into your machine...

Thanks. So does anyone have any idea how to
troubleshoot this problem? If replacing an asterisk
with 127.0.0.1 causes all my websites to display the
same page I normally see at http://localhost/, what's
the first thing you'd check?




__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
David Blomstrom
*nix forums Guru Wannabe


Joined: 09 Feb 2005
Posts: 122

PostPosted: Sat Feb 12, 2005 3:12 am    Post subject: RE: What's my IP? Reply with quote

--- "Gary W. Smith" <gary@primeexalia.com> wrote:

Quote:
You're using virtual hosts. You either need to
specify the FQDN that
the virtual host will is answering to or use the IP
address of the local
machine.

By "IP address of the local machine," do you mean
127.0.0.1, or a different IP address? I tried
127.0.0.1, but typing in the home page of any of my
websites always takes me to the same page - the one I
normally dial up at http://localhost/

So I'm not sure exactly what it is that needs to
changed. Thanks.


Quote:
-----Original Message-----
From: David Blomstrom
[mailto:david_blomstrom@yahoo.com]
Sent: Friday, February 11, 2005 5:40 PM
To: users@httpd.apache.org; The Disguised Jedi
Subject: Re: [users@httpd] What's my IP?


--- The Disguised Jedi <disguised.jedi@gmail.com
wrote:

that is the standard loopback address, and is
always
valid, since it
just will go out and right back into your
machine...

Thanks. So does anyone have any idea how to
troubleshoot this problem? If replacing an
asterisk
with 127.0.0.1 causes all my websites to display
the
same page I normally see at http://localhost/,
what's
the first thing you'd check?




__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty
viruses.
http://promotions.yahoo.com/new_mail



---------------------------------------------------------------------
The official User-To-User support forum of the
Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html
for more info.
To unsubscribe, e-mail:
users-unsubscribe@httpd.apache.org
" from the digest:
users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail:
users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the
Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for
more info.
To unsubscribe, e-mail:
users-unsubscribe@httpd.apache.org
" from the digest:
users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail:
users-help@httpd.apache.org






__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Andrew Bolander
*nix forums beginner


Joined: 12 Feb 2005
Posts: 1

PostPosted: Sat Feb 12, 2005 8:25 pm    Post subject: Re: Apache 2.0.52, Subversion 1.1.3, and Slackware 10 Reply with quote

I solved the problems. The Apache Package that I used was compiled with
CPPFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64". Evidently this
is something that must be done for Slackware 10, because when I compiled
without it Apache's child processess segfaulted immediately. So
Subversion had to be compiled with the same flags. I had to rebuild
Apache anyway because it used headers from a different version of BDB
than subversion did. Everything works now, and the AuthSVN module works
correctly as well.

Thanks for your help.

Andrew

Andrew Bolander wrote:
Quote:
That is kind of what I figured too, but I have not seen anyone else with
that problem. I don't really care about that as much, I don't need
mod_authz_svn so I just leave it commented out. What I need to work is
mod_dav_svn. Any ideas there? Am I using the <Location> tags
incorrectly? If the DAV command specifies a handler similar to the
set-handler command why is apache still looking at *doc-root*/svn
instead of trying the handler? Or does it check the location first and
then try the handler and it is mod_dav_svn that segfaults?

Andrew

Broming plutonium wrote:

Hi,
I think you didn't forget to put anything in you httpd.conf. I
think your your webpages don't work properly because there is a
conflict between mod_authz_svn and auth-basic. I don't know either; I
am just guessing.
Hey guys,

I am trying to setup a Subversion repository on my slack 10 box. I have
upgraded to apache 2.0.52 using the package at linuxpackages.org. I have
installed the Subversion 1.1.3 package from there as well.

I can create the repository, and access it locally just fine. I added
this to my httpd.conf:

---------------------------------------------------------------------------------------------------



LoadModule dav_svn_module lib/apache2/mod_dav_svn.so
LoadModule authz_svn_module lib/apache2/mod_authz_svn.so

DavLockDB /var/DavLock


Dav svn
SVNPath /var/repository/
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/passwd/subversion-access
Require valid-user

---------------------------------------------------------------------------------------------------



Here are the permissions on the Repository:

----------------------------------------------------------------------------------------------------


drwxrws--- 7 nobody nogroup 4096 2005-02-01 15:47 repository//

-rw-rw-r-- 1 nobody nogroup 379 2005-02-01 15:47 README.txt
drwxr-sr-x 2 nobody nogroup 4096 2005-02-01 15:47 conf/
drwxr-sr-x 2 nobody nogroup 4096 2005-02-01 15:47 dav/
drwxr-sr-x 2 nobody nogroup 4096 2005-02-01 15:47 db/
-rw-rw-r-- 1 nobody nogroup 2 2005-02-01 15:47 format
drwxr-sr-x 2 nobody nogroup 4096 2005-02-01 15:47 hooks/
drwxr-sr-x 2 nobody nogroup 4096 2005-02-01 15:47 locks/

repository/conf:
total 4
-rw-rw-r-- 1 nobody nogroup 1361 2005-02-01 15:47 svnserve.conf

repository/dav:
total 0

repository/db:
total 768
-rw-rw-r-- 1 nobody nogroup 1955 2005-02-01 15:47 DB_CONFIG
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 __db.001
-rw-rw-r-- 1 nobody nogroup 270336 2005-02-01 15:47 __db.002
-rw-rw-r-- 1 nobody nogroup 393216 2005-02-01 15:47 __db.003
-rw-rw-r-- 1 nobody nogroup 737280 2005-02-01 15:47 __db.004
-rw-rw-r-- 1 nobody nogroup 16384 2005-02-01 15:47 __db.005
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 changes
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 copies
-rw-rw-r-- 1 nobody nogroup 4 2005-02-01 15:47 fs-type
-rw-rw-r-- 1 nobody nogroup 72140 2005-02-01 15:47 log.0000000001
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 nodes
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 representations
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 revisions
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 strings
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 transactions
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 uuids

repository/hooks:
total 20
-rw-rw-r-- 1 nobody nogroup 1411 2005-02-01 15:47 post-commit.tmpl
-rw-rw-r-- 1 nobody nogroup 1475 2005-02-01 15:47
post-revprop-change.tmpl
-rw-rw-r-- 1 nobody nogroup 2336 2005-02-01 15:47 pre-commit.tmpl
-rw-rw-r-- 1 nobody nogroup 1952 2005-02-01 15:47 pre-revprop-change.tmpl
-rw-rw-r-- 1 nobody nogroup 1533 2005-02-01 15:47 start-commit.tmpl

repository/locks:
total 8
-rw-rw-r-- 1 nobody nogroup 295 2005-02-01 15:47 db-logs.lock
-rw-rw-r-- 1 nobody nogroup 460 2005-02-01 15:47 db.lock
----------------------------------------------------------------------------------------------------





Apache runs as nobody:nogroup

I can access my local webpages via apache just fine. I can access
regular DAV sites just fine, (I use the Firefox Bookmark Syncronization
extension) using DAV On.

When I have the authz_svn_module loaded, and try to access one of my
normal (non-dav) pages that use Auth Basic authentication, they fail. I
just get a blank page. When I don't load authz_svn_module, my pages load
fine.


When I try to access my (url)/svn using subversion, Apache segfaults.
my doc-root is /var/www/htdocs.
Looking at the strace output, it seems like apache is looking for
/var/www/htdocs/svn instead of following the Location tag and enabling
the DAV handler. Here is the strace output:

---------------------------------------------------------------------------------------------------


accept(3, {sa_family=AF_INET6, sin6_port=htons(2046),
inet_pton(AF_INET6, "::fff
f:*source-ip*", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 9
getsockname(9, {sa_family=AF_INET6, sin6_port=htons(80),
inet_pton(AF_INET6, "::
ffff:192.168.1.100", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0},
[28]) = 0
brk(0) = 0x81ce000
brk(0x81d0000) = 0x81d0000
fcntl64(9, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(9, F_SETFL, O_RDWR|O_NONBLOCK) = 0
brk(0) = 0x81d0000
brk(0x81d2000) = 0x81d2000
read(9, 0x81cf3e8, 8000) = -1 EAGAIN (Resource temporarily unavai
lable)
poll([{fd=9, events=POLLIN, revents=POLLIN}], 1, 300000) = 1
read(9, "PROPFIND /svn HTTP/1.1\r\nHost: bo"..., 8000) = 554
gettimeofday({1107380220, 201997}, NULL) = 0
gettimeofday({1107380220, 203109}, NULL) = 0
semop(3440654, 0x401c6dc8, 1) = 0
write(8, "*source-ip* - - [02/Feb/2005:1"..., 125) = 125
semop(3440654, 0x401c6dce, 1) = 0
stat64("/var/www/htdocs/svn", 0xbffff750) = -1 ENOENT (No such file or
directory
)
open("/.htaccess", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or
directory)
lstat64("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/var/.htaccess", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file
or direct
ory)
lstat64("/var/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/var/www/.htaccess", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such
file or di
rectory)
lstat64("/var/www/htdocs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/var/www/htdocs/svn", 0xbffff730) = -1 ENOENT (No such file or
director
y)
brk(0) = 0x81d2000
brk(0x81d4000) = 0x81d4000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
------------------------------------------------------------------------------------------------------




I am hoping that I just forgot to do something in my httpd.conf. I don't
understand why, #1, apache is still looking at /var/www/htdocs/svn, #2,
it is segfaulting, or #3, why mod_authz_svn would affect auth-basic
authentication in any way.

Any information or suggestions is appreciated.

Thanks,

Andrew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


------------------------------------------------------------------------
Post your free ad now! *Yahoo! Canada Personals*
http://ca.personals.yahoo.com/


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Boyle Owen
*nix forums Guru


Joined: 07 Feb 2005
Posts: 618

PostPosted: Mon Feb 14, 2005 12:17 pm    Post subject: RE: cgi-bin question Reply with quote

Quote:
-----Original Message-----
From: rott [mailto:rott@buckeye-express.com]
Sent: Sonntag, 13. Februar 2005 19:14
To: users@httpd.apache.org
Subject: RE: [users@httpd] cgi-bin question


I have that in my config file all ready and I used awstats as my test
program but apache still wants the awstats.pl in the C:\apache\cgi-bin
directory not in the cgi-bin directory of the virtual host
This is my Vhost

VirtualHost xxx.xxx.xxx.xxx
DocumentRoot D:\websites\domian.com
ServerName domain.com
ServerAlias www.domain.com
ScriptAlias /cgi-bin/ "C:/Apache2/cgi-bin/"

You need:

ScriptAlias /cgi-bin/ D:\websites\domian.com\cgi

then you put your CGI progs D:\websites\domian.com\cgi.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.

PS - Your post is a good example of the point that ANY directory can be
used as a CGI directory. It just needs to have ScriptAlias pointing at
it (and be "Allow"ed etc.)



Quote:
ErrorLog logs/domain.com-error.log
CustomLog logs/domain.com-access.log "%v %h %l %u %t \"%r\" %>s %b
\"%{Referer}i\" \"%{User-Agent}i\" combined
/VirtualHost

Dale

-----Original Message-----
From: Jeff [mailto:jdyke@azimapower.com]
Sent: Saturday, February 12, 2005 1:39 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] cgi-bin question

rott wrote:

I have apache 2.45 running on windows 2000 serving one
website runs great
have no problems. I have bought a second domain name and
have started
using
VH works great. Now I want to start running cgi scripts can
each virtual
host use its own separate cgi-bin directory?
Or do all the scripts have to be in the same directory all in
apache2/cgi-bin?? I want each site to run some of the same
scripts and
being
all in the same directory the results aren't correct I hope
I explained
this
correctly

You can put most any directive in a virtual host container
that you can have
in
the main server. I don't use cgi, but adding

ScriptAlias /cgi-bin/ "/path/to/virtual/cgi-bin/"
Directory "/path/to/virtual/cgi-bin"
AllowOverride None
Options None
Order allow,deny
Allow from all
/Directory

... each virutal host conf should do the trick.

HTH
jeff

Dale



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP
Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP
Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




__________________________________________________________
Message transport security by GatewayDefender.com
1:39:18 PM ET - 2/12/2005


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP
Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



Diese E-mail ist eine private und persönliche Kommunikation. Sie hat
keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This
e-mail is of a private and personal nature. It is not related to the
exchange or business activities of the SWX Group. Le présent e-mail est
un message privé et personnel, sans rapport avec l'activité boursière du
Groupe SWX.

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Nelson, Robert D.
*nix forums beginner


Joined: 09 Feb 2005
Posts: 13

PostPosted: Tue Feb 15, 2005 7:02 pm    Post subject: RE: I want to run 4 apache servers on one unix box (for example on port 80,81,82 & 83). Reply with quote

Quote:
I want to run 4 apache servers on one unix box (for example
on port 80,81,82 & 83). How is it possible. I feel that I
have to install apache only once and use a different
httpd.conf for each apache server. However I donot know all
the steps, Please suggest.

Yes, you can do that. Install the binary in one place. Then you'll need
separate httpd.conf and PID files and maybe some other separate things (e.g.
scoreboard file). When you start up the server just pass it the conf file
you want to use. Better yet, you can create a separate apachectl script for
each instance and hard-code the differences in each script.

~ Robert


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 3 of 61 [905 Posts] Goto page:  Previous  1, 2, 3, 4, 5, ..., 59, 60, 61 Next
View previous topic :: View next topic
The time now is Tue Dec 02, 2008 6:16 am | All times are GMT
navigation Forum index » Apps » Apache
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts howto log in from one bsd-server to another and move file... Tobias Steer FreeBSD 3 Thu Jul 20, 2006 10:02 am
No new posts Binary Files Ronin C++ 8 Wed Jul 19, 2006 3:12 pm
No new posts Bug#378877: ITP: libsvm-doc -- documentation and example ... Rudi Cilibrasi devel 0 Wed Jul 19, 2006 1:50 pm
No new posts Bug#378873: ITP: libsvm0-dev -- development files for Lib... Rudi Cilibrasi devel 0 Wed Jul 19, 2006 1:20 pm
No new posts Bug#378866: ITP: libnanohttp1-dev -- header files for nan... Rudi Cilibrasi devel 0 Wed Jul 19, 2006 12:40 pm

Remortgages | Yugioh | Car Accident Lawyer Los Angeles | Mortgage Loans | Remortgages
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2808s ][ Queries: 16 (0.0607s) ][ GZIP on - Debug on ]