404 at www.mysite.com/gallery2 after apt-get install gallery2
psi36
Joined: 2006-02-16
Posts: 16 |
![]() |
I just did an install with "sudo apt-get install gallery2", but when I surf to http://ddhuyvet.no-ip.info/gallery2 I get a "404 Not Found". Gallery version: 2.1.1-1 |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
maybe it's at apache2-default/gallery2/, who knows... depends on your linux distribution. -------------- |
|
swelf
Joined: 2006-10-06
Posts: 23 |
![]() |
I had the same problem when I did a gallery2 install on Debain Sarge. I had to edit /etc/apache2/sites-available/default and add a new alias. You should check that or you could add an Include in apache2.conf to /etc/gallery2/apache.conf and modify that to your needs. Hope that helps. |
|
psi36
Joined: 2006-02-16
Posts: 16 |
![]() |
I've added the lines #Include Gallery2 configuration: Include /etc/gallery2/apache.conf to /etc/apache2/apache2.conf #Alias /gallery2 /usr/share/gallery2 <Directory /usr/share/gallery2> Options FollowSymLinks AllowOverride Limit Options FileInfo </Directory> # some people prefer a simple URL like http://gallery2.example.com #<VirtualHost 1.2.3.4> # DocumentRoot /usr/share/gallery2 # ServerName gallery2.example.com #</VirtualHost>
I restarted Apache, but still get the 404 Error. |
|
schultmc
![]()
Joined: 2003-05-21
Posts: 108 |
![]() |
Edit /etc/gallery2/apache.conf and remove the comment (#) in front of Alias /gallery2 /usr/share/gallery2) and restart apache. Once the alias has been enabled, your gallery should then be available at www.example.com/gallery2 (where www.example.com is replaced with your actual host name.). -- |
|
psi36
Joined: 2006-02-16
Posts: 16 |
![]() |
I uncommented the first line: And restarted Apache, but got a warning: $ apache2 -k restart [Wed Apr 25 22:00:32 2007] [warn] The Alias directive in /etc/gallery2/apache.conf at line 1 will probably never match because it overlaps an earlier Alias. And I still et a 404 error. |
|
schultmc
![]()
Joined: 2003-05-21
Posts: 108 |
![]() |
The warning says the alias will never match. I'd edit the apache configuration for www.mysite.com and set the Alias there. The 404 should go away once you get /gallery2 to point to the gallery files. -- |
|
psi36
Joined: 2006-02-16
Posts: 16 |
![]() |
If I set the alias in /etc/apache2/apache2.conf I get the same warning: $ apache2 -k restart [Wed Apr 25 23:09:45 2007] [warn] The Alias directive in /etc/apache2/apache2.conf at line 395 will probably never match because it overlaps an earlier Alias. I understand I need to get /gallery2 to point to the gallery files, I just don't know how. |
|
schultmc
![]()
Joined: 2003-05-21
Posts: 108 |
![]() |
Is all of your apache configuration in /etc/apache2/apache2.conf? There's some other alias you have defined in some configuration file that is effectively nullifying the /gallery2 alias. If you'd like to e-mail your configuration file(s) to me at schultmc@gallery2.orgI can see if I can diagnose the issue. -- |
|
psi36
Joined: 2006-02-16
Posts: 16 |
![]() |
I think I found why this alias is already defined: |
|