|
Related Pages: Not sure if this is an Ubuntu Feisty specific question or not but Ive got 000-default and default in sites-enabled |
paste the output of apache2 -S
megaspaz, only packages.bosslinux.in and bosslinux.in are
working correctly
megaspaz, its here
megaspaz, http://apache.pastebin.ca/571486
well packages isn't really working as you said yesterday, if
you switch the vhost orders the one on the top is always
used...
megaspaz, yes, thats what is happening
sow what's happening is all the subdomains
aren't being caught
apache2 -S output looks just peachy fine...
crap...
megaspaz, hmm
the only thing i can think of, and i know this isn't right,
is that plone screwed something up
megaspaz, ok, then let me comment the plone part of vhost
block and check
are you sure you're not doing any rewrites in the main
apache2.conf or httpd.conf file?
give me a couple of mins
megaspaz, after I comment that part also, no use,
the same is the output
no, there are no rewrite rules
one was there, which I commented in the apache2.conf file
and you restarted apache?
blocks get rid of the trailing /
megaspaz, yes I restarted apache
megaspaz, ok
and what's the output of apache2 -V
grep -ir redirect /etc/apache2
grep -ir rewrite /etc/apache2
megaspaz, here is the output of those two
http://apache.pastebin.ca/571496
megaspaz, my apache2ctl --configtest output is something like
this
make_sock: could not bind to address [::]:80
make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
what does this mean?
apache's already listening on port 80
hrm...
i wonder if this is because you're thinking your restarting apache
but not...
megaspaz, yes I am restarting apache
I am uisng restart command only
what command are you using to restart apache?
/etc/init.d/apache restart
ok
megaspaz, what next
drink alcohol
fire the operator?
megaspaz, apache is really playing with me :-(
i don't know if it's apache.
i'm more apt to blame debian or ubuntu
vhosts work perfectly for me
works perfectly for others as well
might be a bug in your particular version of debian apache
which you never answered... what does apache2 -V tell you?
megaspaz, oh no, dont say that
this version of debian is my whole repository
megaspaz, :-) , its 2.2.3
heh
hey !
interesting... i'm not sure, but isn't that in testing only?
so you're running debian etch?
i remember there being some quirks with debian's 2.2.3
package...
but i don't ever remember seeing this
i would ask in #debian as well...
megaspaz, ok. then shall I try installing apache from
source?
megaspaz, please ask
i'm not gonna ask
i don't use debian
megaspaz, ok
then which version of apache shall I install and try
megaspaz, if I go through source. I feel that all the plugins I
need to install , manually
if it were me, i'd ask #debian if there are any known issues
with name virtualhosts in apache 2.2.3
megaspaz, its really a hectic job
yes, that you would have to do if you went source package
so i'm trying to save you from that
megaspaz, ok I am asking in debian
if they say no, ask them why your subdomain vhosts
aren't being picked up. everything is going to the default vhost.
give them the output of apache2 -S and your vhost config
megaspaz, ok
and then if they can't answer it, file a bug with debian
megaspaz, so sad, they said yes
ah
hahaha
megaspaz, I am finding out what it is
it's a buggy package
megaspaz, its my bad time
there ya go
debian--
damn i didn't it'd be that borked...
*didn't think it'd
megaspaz, could you see the talk going on in #debian
no
i'm not on #debian
and if joined now, i'd miss it
anyway
indraveni-- # making me go to #debian
if changing the file name is the problem, then debian really
fucked up their apache configs
i create one thumbnail at the time of an image upload. is it
better to have all your uploaded images and thumbnails in one
directory? or better to have a directory per set of image host files?
whatever makes sense to you
mronuign
morning
morning is broken, but we're working on it.
...
wow
without php
webhosting do you really think apache has value ?
world of warcraft
world of warcraft is still down, at this rate I may actually
finish chapter 2 todayfar too addict
megaspaz, my dns after forwarding to easy.dnc, from there it
has been redirected to bosslinux.in
megaspaz, is that configuration wrong?
yes
i explained why forwarding is bad in your case
megaspaz, yes
megaspaz, so I have to talk to my n.w administrator
what you should be doing is setting up your records to map to
your servers static
ip hosting address
megaspaz, anyway, thankyou for your patience and help
not be forward by easydns
megaspaz, ok
*servers external ip address that is
you should talk to whoever it is that has access to the easydns
account
megaspaz, what id I add an entry like downlaods.bosslinux.in IN
A [Ip Address]
well you'd just alter whatever records you have.... there's
nothing to add
your problem isn't dns resolution. that's fine as your domains
resolve. they don't use the right vhost because your requests are
being forwarded instead of going directly to your
server
megaspaz, sorry, its alter only, typing wrong
and that depends on what easydns offers up as a user
interface
for my registrar it's just a form. you put in domain name, ip
address and record type
megaspaz, oh
hey team
DirectorySlash Off
megaspaz, ok. I will check with the realted person
is that in my app's xml config file?
sub.domain.com --- 111.111.111.111 --- A Record
&to your .htaccess file will disable Apaches addition of
the trailing slash, and you should be good to go. ...
but i'm not sure where this .htaaccess file is
megaspaz, ok
directoryslash context
server config, virtual host, directory, .htaccess
context
context is http://httpd.apache.org/docs/mod/directive-dict.html#Context
http://httpd.apache.org/docs/2.0/mod/directive-dict.html#Context
http://httpd.apache.org/docs/2.2/mod/directive-dict.html#Context
^^
in any of those contexts
does it not matter?
it's also important to know what the contexts actually mean.
not really
depends on what you want to do
if you want it server wide, put it in the server context
"but it seems that theres a problem where Apache
automatically appends trailing slashes in cases where youve got a
directory/symlink in your public folder that matches a named
route."
block.
a ha
or htaccess...
so it depends on what you want
i see what you mean
so each of these xml blocks is a 'context' ?
they aren't xml blocks...
heh heh
thankfully apache isn't using xml for configuration...
they're just directives
ah
well directive containers
whats the difference between directive & container ?
the container contains directives
Options blah ... Order allow,deny ... /directory
the directory block contains directives
determines which scope those directives will affect...
a ha
so those directives will only affect /blah/blah
man
this apache stuff is complex
but i played around with IIS
and i like apache a helluva lot mroe
it ain't that complex
well mod_rewrite is...
is it a good thing to use KeepAlive when having an suexec
environment ?
i don't think keepalive has much to do with mod_cgi using
suexec
chipig, so it is worthless then
keepalive?
keepalive is http://httpd.apache.org/docs-2.0/mod/core.html#keepalive
no?
hello
hola, _`XeOn_.
uyy
respuesta rapida
hello
how to make apache online?
how would i redirect from / to /home on my server? i tryed
"Redirect / http://url/home" but it
didnt like that?
how to have a redirect for section8.html to
newstory-1-8-0-1.html and section9.html to newstory-1-9-0-1.html so
that i can have only one redirect rule?
i tryed to access my web using default port 80 but it doesnt
open however i can access typing port 8080 how to fix
this?
_`XeOn_: are you using vhosts ?
thats the problem i dunno how to configurate that
_`XeOn_: http://www.tutorial5.com/content/view/83/51/
i got my domain name redhabana.net and its pointing to my IP
but since por 80 dont open i cant use it
_`XeOn_: if you are using vhosts then in the config file you
will have to indicate the port your using to deliver the site,
usually its either 80 or 443(for https)
vhost is set where in apache2.conf or httpd.conf?
hey all
all is yango in disguise
cool bot
well. i have a shell account where i want to execute .py files
somehow. but i don't have access to the web server config file is
there some way out by which i can provide user overrides to
apache's config ?
the admin defines which overrides are acceptable
aah
AllowOverride
AllowOverride tells Apache what things you wish to permit in
.htaccess files. See http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride
and the place to do the things, when you have no access to
main config, is the .htaccess file
how to have a redirect for section8.html to
newstory-1-8-0-1.html and section9.html to newstory-1-9-0-1.html so
that i can have only one redirect rule?
thanks i was thinking where to start. it seems like .htaccess is
the place to start with
RedirectMatch section([0-9]).html newstory-1-$1-0-1.html
so if the admin has written something like allowoverride then
it can work ?
garbage
try putting junk in your htaccess file. If it's being read,
you will get an Internal Server Error when accessing that
resource.
wich conf file u edit with the vhost???
thanks. do i need to put a ^ before section or is it fine
without it also ?
and if it is being read, you can then figure out what things
you can do
tias
tias is Try it and See - if you want to know if something
will work, give it a go. If not, then you can ask why it didn't
work as expected
^
:P
thanks
okay
what you will need though, is a complete uri at the other
end
fajita bot talk to me
_`XeOn_: what?
xD
i need help
ie RedirectMatch section([0-9]).html http://foobar.net/newstory
...
i was gonna do RedirectMatch ^section([0-9])
^/newstory-1-$1-0-1.html [R]
i have this written in server's config file AllowOverride
FileInfo AuthConfig Limit Indexes does that mean i can have
addhandler for .py file ?
or i need AllowOverride AddHandler kinda thing
fajita u love me?
wish i knew, _`xeon_
yeah me too
_`XeOn_, stop playing with the bot
y?
y is Lit wen i type localhost it goes to /var/www .. y doesnt it
go to /wwwroot/ ?
omg how to configure my vhost
yango, ?
AddHandler may be used in .htaccess files if AllowOverride is
set to FileInfo
but if you have access to main config you shouldn't use htaccess
files!
i don't have access
the why did you say what you said?
then
you mean this "i have this written in server's config ..."
?
do i have to put [R] at the end of the RedirectMatch ?
wow
[computersolution] if your table is in the red for "overhead"
does that mean your running out of space?
htaccess
htaccess files apply to the directory in which they are placed,
and to all subdirectories thereof. or Only needed if you don't have
access to the main server config. or http://httpd.apache.org/docs/howto/htaccess.html
or http://httpd.apache.org/docs/configuring.html#htaccess
or http://httpd.apache.org/docs-2.0/howto/htaccess.html
or if it doesn't work, checkyour AllowOverride directives in http.
Ask me about AllowOv
Hi world.
hi
hi, tibyke.
quick question where do i put .htaccess in /home/example/ or
/home/example/public_html ?
you put it in the directory you want it to apply to
after i have written the file the server need not be
restarted right ?
htaccess purpose
Don't confuse htaccess with password-protection. The purpose of
htaccess is to enable users to configure apache locally for their
own directories, when they have no privilege to do so in
httpd.conf. Using htaccess slows the server. Also rewriterules and
redirects are more complex in htaccess
okay my server provides allowoverride on fileinfo so it means
i can use addhandler in .htaccess. well i wrote a .htaccess in
/home/example/ with this AddHandler cgi-script .cgi .py
and when i run a .py file it just prints the code.
the .py is made executable for all.
Options +ExecCGI
Options +ExecCGI allows a directory to execute CGI
scripts.
i have this inside the server's config Options Indexes
SymLinksIfOwnerMatch IncludesNoExec ExecCGI
is it okay ?
i can execute .cgi though perfectly
uhm... do I get this right... you have access to the
httpd.conf, but make the configuration of Python inside an
.htaccess?
i don't have access to server conf
Ah. Okay.
is this rewrite rule wrong ?? RewriteRule ^/section3\./html$
/the-news-brief.html [R] ?? im always getting 404 NOT
Found
well.. wtf does \3./ mean?
does that looks like /section3./html or such somethings
im escaping the dot
im redirecting http://mysite.org/section3.html
to http://mysite.org/the-news-brief.html
if you say redirecting.. why don't you use
redirect
redirect is http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect
or http://httpd.apache.org/docs/mod/mod_alias.html#redirect
or see 'Redirect Context'
then?
ok thanks
then when to use Rewrite rule and then when to use RedirectMatch
?
don't use Rewrite rules when you can avoid them.
voodoo!
see mod_rewrite
and...
granny
Granny Weatherwax tells us the most important thing about
magic is when _not_ to use it. The same is true of
mod_rewrite.
... nice.
it has it uses.
Yeah... but half of the problems "solved" with mod_rewrite
could be *solved* with something else.
yeah
does apache cache the vhost entries ?? i just changed my vhost file
but still its using my rules that i have commented
Did you restart, reload, rewtfever the server?
yes, did service httpd restart
then clear your browser's cache
did that
and proxy
proxy is http://httpd.apache.org/docs-2.0/mod/mod_proxy.html#proxy
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxy
just to be sure, i checked it in IE FF anf Flock
there is no proxy section in my vhost file
alright thank you guys... need to go for lucnh
*lunch :P
excuse?
Electricians made popcorn in the power supply
?
there's a flag to turn the engine off
php_flag php_engine off or something you can put in the
configuration of your vhost
ask next door, in ##php
tnx
I'm trying to get dav working. The module is loading and i
can attempt to log in, but it always says I have the wrong
password. The log confirms this is the problem, but i have reset
the password with digest several times but it didn't work, anyone
have any other ideas of what it could be?
what does DAV have to do with that?
jMCg, that is what I'm trying to log into
Disable auth, let's see if it works without.
alright
"405 Method Not Allowed"
it's wierd because the access logs dont show it failing,
Why, what'd you get in accesslog?
Guys - is there any Apache Experts around? I am trying to setup
a "name" for the new apache server...how do i go about this - ive
read a few google guide but am getting some mixed messages
2 -0700] "OPTIONS /var/www/ HTTP/1.1" 401 492 "-"
"cadaver/0.22.4
Tom__, you mean a domain name?
you're still getting 401
Yeah i guess so - i want to setup 2 hosts so to speak - one for
internal use (intranet style) and one i can access from outside the
network (but im not too fussed about this at the moment that can
come at a later date)
0 -0700] "OPTIONS /var/www/ HTTP/1.1" 200 - "-"
"cadaver/0.22.4
Hm.
Sorry to hassle you - but can you point me in the right
direction at all...i assume its a pretty straightforward
task?:
marfeath, not a hassle at all, check out tinydns, it is seperate
from apache and the best one I've used
Thanks
Ah.. I see.
Tom__, You're welcome
jMCg, ?
I was just wondering what Tom__ whas up to...
jMCg -i just installed my first Apache server and wanted to
setup a "Domainame" for internat network use - so in the address
bar i type "Hostname" or whatever and it would reference to the
apache server
do you have per chance a Limit directive somewhere?
you need to setup vhosts
vhosts example
vhosts examples
vhost examples
Look at these for examples http://wiki.apache.org/httpd/Recipes/ExampleVhosts
:: http://httpd.apache.org/docs/2.2/vhosts/examples.html
:: http://httpd.apache.org/docs-2.0/vhosts/examples.html
:: http://httpd.apache.org/docs/vhosts/examples.html
^
Thanks Man - Is it pretty straightforward? or...as an offical
n00b am i likely to blow it all up? ^.^
both
I'm fairly new to this, but I dont have any limit option in my
sites_enabled site
most people die, the first time they try to comprehend
vhosts.
grep -ri limit /etc/apache2
^
Thanks Guys for the help - i shall give it a shot and no
doubt be back in a minute to tell you how smoke is pouring out of
the back of the server
nope, it isn't used anywhere
then dunno what else to suggest, marfeath
alright, thanks anyway.
For the internal site - does it have to be something.com or can
i just use the hostname of the server as the FQDN?
as long as it resolves, doesn't matter. Of course if you want
people on the internet to access the server, you better put an
existing DNS name to it
if you can convince the world that they accept your hostname
as TLD, then not.
This one will just be for internal only so i dont need
anything.com i just want to have like "Intranet" or
something?
you can, but both the server and all the rest of the clients
will have to know that name
Oh. Wow you where right i can see the smoke Already!!
heh
anyone know what this means?
8 2007] [error] [client 127.0.0.1] SecurityException in
Application.cpp:162: Calling user is not webserver user!,
referer:
when I access a php file
even when i have RedirectMatch ^/section3\./html http://mysite.in/the-news-brief.html,
im getting 404 Not Found for http://mysite.in/section3.html.
How to debug this issue now ?
even when i have RedirectMatch ^/section3\./html a href="http://mysite.in/the-news-brief.html"http://mysite.in/the-news-brief.html/a,
im getting 404 Not Found for a href="http://mysite.in/section3.html"http://mysite.in/section3.html/a.
How to debug this issue now ?
Related Topic:
Not sure if this is an Ubuntu Feisty specific question or not but Ive got 000-default and default in sites-enabled