2011-07-17 5 views
-1

J'utilise ce guide: http://codingthis.com/platforms/linux/how-to-host-simple-content-with-amazon-elastic-cloud-computing-ec2/Amazon EC2 Comment héberger un fichier PDF sur mon instance?

J'ai un dossier nommé public_html dans mon répertoire/home/EC2-utilisateur avec un fichier index.html.

Ce que je l'ai fait jusqu'à présent:

sudo yum -y install httpd php 
sudo chkconfig httpd on 
chmod 755 /home/ec2-user (I HAVE NO IDEA WHAT THIS DOES) 
sudo nano /etc/httpd/conf/httpd.conf 
    (changed DocumentRoot to DocumentRoot /home/ec2-user/public_html) 

Maintenant, quand je vais à mon www.mywebsite.com il frappera mon fichier index.html. J'ai essayé de mettre un fichier pdf dans mon répertoire public_html, j'ai essayé d'aller sur www.mywebsite.com/pdffile.pdf et la page n'a pas été trouvée. Comment héberger mon fichier pdf sur mon instance ec2?

EXTRA:

J'ai un groupe de sécurité activé pour mon exemple des règles:

ICMP Allow ALL 
TCP Allow ALL 
UDP Allow ALL 
TCP port 80 (Http) 
+0

Il est très déroutant lorsque vous ajoutez la réponse à votre question à la fin de votre question sans préavis. Vous pouvez * répondre * à vos propres questions avec la boîte de réponse. –

Répondre

0

user848118 a répondu à son/sa propre question: les URL sont sensibles à la casse.

Questions connexes