Deleted htdocs/myproject on Apache. How do I get things back?

7 views
Skip to first unread message

Adriano Varoli Piazza

unread,
Apr 17, 2009, 10:07:39 AM4/17/09
to Trac Users
On a recent purge of 'useless' sites sitting in the htdocs dir of
apache (2.2), I deleted also the directory that serves as location for
my project. That is, the project has a
c:\tracprojects\myproject directory still intact,
I deleted (then rewrote)
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\myproject

My relevant (I think) httpd.conf lines are:
<VirtualHost 127.0.0.4:80 >
DocumentRoot "C:/Program Files/Apache Software Foundation/
Apache2.2/htdocs/trac/myproject"
ServerName trac.localhost.dev
<Location />
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir "C:/tracprojects/"
PythonOption TracLocale "Spanish_Argentina"
# PythonOption TracUriRoot /
</Location>
<Location /myproject/login>
AuthType Basic
AuthName "Mybusiness Trac Server"
AuthUserFile "C:/tracprojects/myproject/trac.htpasswd"
Require valid-user
</Location>
</VirtualHost>

If I now visit e.g. http://trac/myproject/wiki, as I used to do, I get
a "Error: Not Found No handler matched request to /myproject". If I
visit http://trac/wiki, I get the content I want, but without any CSS
or images.
What can I do to recover the original setup?

--
Thanks much
Adriano

Olemis Lang

unread,
Apr 17, 2009, 11:08:03 AM4/17/09
to trac-...@googlegroups.com
On Fri, Apr 17, 2009 at 9:07 AM, Adriano Varoli Piazza
<mor...@gmail.com> wrote:
>
> On a recent purge of 'useless' sites sitting in the htdocs dir of
> apache (2.2), I deleted also the directory that serves as location for
> my project. That is, the project has a
> c:\tracprojects\myproject directory still intact,
> I deleted (then rewrote)
> C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\myproject
>

Uffff ! Perhaps you could have used GetDataBack in order to retrieve
back the same data that was deleted. If you have the time and
opportunity (retrieval not always possible, especially in case of
subsequent write ops to disk) perhaps you could try it out ;o)

--
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

Adriano Varoli Piazza

unread,
Apr 17, 2009, 11:28:57 AM4/17/09
to Trac Users
Forget it, I was still being an idiot. The dir I had to recreate was
[...]htdocs/trac/myproject, not [...]htdocs/myproject. Everything's
back to normal.

This means that there was a dir called 'trac' inside htdocs that I
deleted without remorse. I'm brillant, no doubt.

Sorry for the time you spent on the question. I'd have replied sooner,
but I was being moderated (very first question).

--
Thanks again
Adriano
Reply all
Reply to author
Forward
0 new messages