Bonjour,
je suis débutant sur apache. Jusqu'à ce jour j'avais juste un dossier où je mettais mes travaux. Mais là je voulais commencer un projet. Mon but est
de creer un virtual host pour mes travaux divers et un autre pour mon projet(projet sur symfony) tous les 2 differencies par le nom sur le port 80 de127.0.0.1. J'ai configuré, mais Le problème c'est que
seul mon projet symfony est visible. Pour mes travaux divers, quand je les lance, ça me fait une erreur 404 du type "The requested URL /test5/index.php was not found on this server".
Je cherche depuis un moment, si vous pouviez m'aider SVP...

Ma configuration : Linux ubuntu 10.10
Apache 2.2.16
Je code sur Netbeans 6.9.1
Mes fichiers de config:

/etc/hots

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
88.161.42.***	mon id	# Added by NetworkManager
127.0.0.1	localhost.localdomain	localhost 
::1	mon id	localhost6.localdomain6	localhost6
127.0.1.1	samy-P55A-UD3R
127.0.0.1 www.projetsf1.com.localhost
127.0.0.1 www.public_html.com.localhost
 
 
 
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
mon fichier apache/sites-available/projetsf1
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
 
<VirtualHost *:80>
 
	ServerName projetsf1.com
        ServerAlias www.projetsf1.com.localhost
 
         DirectoryIndex index.php
	DocumentRoot "/home/samy/sfprojects/projetsf1/web"
 
	<Directory "/home/sfprojects/projetsf1/web">
		AllowOverride none
		allow from all
                Order allow,deny
		allow from all
 
	</Directory>
 
	Alias /sf /home/samy/sfprojects/projetsf1/lib/vendor/symfony/data/web/sf
 
	<Directory "/home/samy/sfprojects/projetsf1/lib/vendor/symfony/data/web/sf">
		AllowOverride All
		Allow from All
	</Directory>
</VirtualHost>

mon fichier apache/sites-available/public_html
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
 
<VirtualHost *:80>
  ServerName public_html.com
   ServerAlias www.public-html.com.localhost
   DocumentRoot "/home/samy/public_html"
 
  <Directory "/home/samy/public_html">
    AllowOverride none
    Allow from All
    Order allow,deny
    allow from all
 
  </Directory>
 
</VirtualHost>
mon fichier apache/sites-available/default

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
 
<VirtualHost *:80>
	ServerAdmin webmaster@localhost
 
/* CONFIGURATION INITIALE DE SITE-AVAILABLE/default
 
	DocumentRoot /var/www
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
	</Directory>
 
	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	</Directory>
 
	ErrorLog ${APACHE_LOG_DIR}/error.log
 
	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn
 
	CustomLog ${APACHE_LOG_DIR}/access.log combined
 
    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>
 
</VirtualHost>