gallery2 as default website
|
averell
Joined: 2009-07-01
Posts: 4 |
Posted: Wed, 2009-07-01 16:35
|
|
I installed gallery2 succesfully, all is working well. However, now I want to make it my default site, so no longer log on to my webserver and add the /gallery2 (http://localhost/gallery2), but directly go to the gallery 2 site when I go to http://localhost. I'm quite sure it's an easy setting in apache somewhere, but I really don't have a clue. Anyone can point me to a quick solution? Much appreciated! |
|
| Login or register to post comments |

Posts: 11001
There's several ways to kill this bird. Are you the admin of the system?
If so you could just edit your httpd.conf file for Apache to point the site to that new directory and restart Apache.
You could also move Gallery to the root of your site:
FAQ: How can I move my gallery installation from one folder to another?
You could create a rewrite rule to redirect to /gallery2
You could create an index.html page that had a refresh meta tag in the head of the page to go to that page.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 4
yep, I'm the admin. How would I edit the httpd.conf? it's now an empty file. I run under debian, not sure if that's relevant, did the standard installs with apt-get etc.
Posts: 11001
I doubt it's empty as Apache wouldn't be running if it were
http://www.google.com/search?q=httpd.conf+location+debian
/etc/apache2/httpd.conf
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 4
drwxr-xr-x 7 root root 4096 Jul 1 05:28 .
drwxr-xr-x 63 root root 4096 Jul 1 02:15 ..
-rw-r--r-- 1 root root 10104 Jun 11 10:14 apache2.conf
drwxr-xr-x 2 root root 4096 Jun 30 03:49 conf.d
-rw-r--r-- 1 root root 378 Jun 11 10:14 envvars
-rw-r--r-- 1 root root 0 Jul 1 05:25 httpd.conf
drwxr-xr-x 2 root root 4096 Jun 30 18:57 mods-available
drwxr-xr-x 2 root root 4096 Jun 30 18:57 mods-enabled
-rw-r--r-- 1 root root 513 Jun 11 10:14 ports.conf
drwxr-xr-x 2 root root 4096 Jun 30 03:31 sites-available
drwxr-xr-x 2 root root 4096 Jul 1 04:33 sites-enabled
Truly empty..... and yes, it runs....
Posts: 11001
Maybe apache2.conf
Otherwise hit google. If you were running lighttpd I could tell you what to change ;)
Just installed Apache on my Debian server.
cd /etc/apache2
grep -nri www ./
Looks like sites-available and sites-enabled contain info pointing to the default location of /var/www
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 4
hmmm finally I changed the documentroot in the default file in the sites-enabled dir. It does the trick