How to properly config IPFS' DNS Link? - ipfs

I have the subdomain aragon.plasmmer.com, but even with IPFS Desktop+Companion enabled, it isn't redirecting to IPFS.
plasmmer.com also had an TXT record and isn't redirecting.
How to config it properly?

Update: it was an issue with my host's company.
They fixed and the DNS is now properly propagated; so, the TXT records I put were correct.
So this is an invalid question.

Related

Why is my WordPress domain only available without www, and doesn't work with www?

Recently, I don't know what happened and the home page of my WordPress website: https://www.tomandlola.com started showing JSON code whenever I try to open it, but the rest of the pages of the website are working totally fine for example: https://www.tomandlola.com/contact-us
So I tried the following but had no success:
Deactivated all the plugins at once and the reactivated them gradually
Renamed .htaccess file from file manager using cpanel, but no success
Updated everything (even though rechecking for updates for WordPress version even when it was already on latest version
Changed the default theme
Rechecked the site's and home page URLs in wp-options in the database from phpMyadmin using cpanel and the URLs are okay i.e: https://www.tomandlola.com for both of them.
Tried to add define lines to wp-config.php: define( 'WP_HOME', 'http://www.tomandlola.com' ); define( 'WP_SITEURL', 'http://www.tomandlola.com' );
Tried to add these in functions.php update_option( 'siteurl', 'http://www.tomandlola.com' ); update_option( 'home', 'http://www.tomandlola.com' );
But still no success.
This is what my site's homepage is showing
One more thing I noticed was that when I tried to access the website using a VPN, it worked fine even with www but without VPN it shows this JSON on the home page with www. I don't know if its some IP address issue or DNS or just some corrupted file somewhere.
I suspect it to be a DNS propagation issue. Based on the info shared in the question, it looks like the DNS records were not propagated everywhere so for some networks you were not resolving and for some networks(VPN) the domain with www was resolving to the correct IP address.
I can't seem to replicate this at my end currently. Any screenshot or more info will be helpful in identifying the root cause.

Have index.html file but still getting a directory listing

I have an index.html file in my Apache DocumentRoot directory but when I go to my URL, I am still getting a directory listing of my DocumentRoot directory instead of the index.html file being displayed. The apache access_log shows 200's when I reload the page. Any suggestions?
Use
DirectoryIndex index.html
It tells apache what document to show for a directory request.
update
You should specify just the filename that apache will look for in the folder requested.
Not saying this will fix it for you, but for me when first getting started with Apache2 it was file permissions that would get forgotten when moving or writing new file under the web root directory
ls -hal /var/www/host_one/index.html
If above doesn't have read (r) permissions for the same user:group or if the ownership doesn't include the user/group of the web server, then try the following for allowing group reads
# Modify ownership, change 'www_host' to Apache2 group
chown ${USER}:www_host /var/www/host_one/index.html
# give read+write (6) to user and read (4) to group owners
chmod 640 /var/www/host_one/index.html
Try refreshing the website and see if permissions where the issue. Note most web documents only require read permissions and ownership to be correct for browsers to be allowed to pick them up for rendering, on rare occasions you may need executable (1 or x) permissions for server scripts (be cautious of ownership in such cases) and last write permissions (2 or w) should likely never be seen without good reasons on files within your web root.
Second thing to try, use the index.html within your browsers URL bar
# by IP
http://192.168.0.100/index.html
# by domain
http://site-name.local/index.html
If the above loaded your document then, like #Pekka 웃 stated already, you've likely got a server option that's missing or enabling directory listings instead of looking for a index page within that directory. If this is the problem then there's two ways of fixing it that I've tried in the past. One, htaccess configuration to disable directory listing within that sub-directory, two, server vhost configuration to prevent whole site from directory listings. Personally I prefer to use option two and then on directories that should be allowed to be listed place an htaccess config for permissions instead of denials.

make public website reconnect to local html or xampp

Basically what I want to do is if I open this
http://steamcommunity.com/market
website on my pc I want to see a local website that is stored as html. I already tried to host the website with xampp which worked and trying to add
localhost/path http://steamcommunity.com/market
to my hosts file.
but instead of redirecting me to my local hosted html file it just loaded the steam market.
This is a two step process: first, you have to redirect the web site name to your computer; next, you get Apache to redirect the web site address to your installed directory.
Locate your hosts file,
Add lines containing the domain name(s) and IP address to redirect to.
Each line must begin with the address 127.0.0.1 (this is the localhost address)
After the IP address, type the name of the domain you wish to redirect to this address. You may only enter 1 name per line.
Addresses like my-site.com and www.my-site.com are different and each need a separate line.
Save the changes.
Next,
Locate the httpd-vhosts.conf file. For most XAMPP 1.7.3 installs this will be C:\xampp\apache\conf\extra
Add the new host,
<VirtualHost *:80>
ServerName www.joomla.16
ServerAlias joomla.16
DocumentRoot d:/xampp/htdocs/path/mysite
</VirtualHost>
Explanation of VirtualHost preparation,
ServerName: following this label, add the name of the domain you added in
ServerAlias: following this label, you may add as many alternate domains (separated by spaces) as you like that are supposed to resolve to this virtual host. Remember that www.my-domain.com is different from my-domain.com, but, typically, you would want them to resolve to the same server.
DocumentRoot: following this label, add the path where your website is located. You can use an absolute path (as in the example above), or a relative path (but relative paths can be trickier to set up, so I prefer to use an absolute path).
Restart Apache Web Server
You should now be able to type the domain name into your URL field and go directly to your locally hosted web site:
Please see this tutorial for more help.
No idea why you'd wanna do this, but your hostsfile should be:
127.0.0.1 www.steamcommcunity.com
::1 www.steamcommcunity.com
127.0.0.1 steamcommunity.com
::1 steamcommunity.com
Just to be on the safe side I've used both with and without www, and both IPv4 and IPv6

Photos are not showing up when using No-IP ddns and linux apache

I don't have a static IP address so a person recommended that I use no-ip.com
I did and now my website is accessible from external internet yay
The problem now is that my photos aren't showing, I thought this would have been a simple issue
I'm not sure if I have to do something with Virtual Host or...
My domain name is greenace92.ddns.net
I can access my index.html file, that shows up fine but the photos aren't showing
On my httpd.conf file I have
ServerRoot "/usr/local/apache2"
The html files are in htdocs under apache2
So, on virtual host that httpd-vhosts.conf file I have the following
ServerAdmin "jacobcun#ricekidengineer.com"
DocumentRoot "/usr/local/apache2/"
ServerName "www.greenace92.ddns.net"
*ricekidengineer.com is my other domain with email configured
I didn't change the error logs from stuck "dummy" stuff
So on my html file for image href's I have
http://www.greenace92.ddns.net/htdocs/images/normalbus-icon-on.png
I assume that www.greenace92.ddns.net is /usr/local/apache2
So I'm just continuing the directory location
Is that correct? What is wrong?
Yeah I don't understand, I even tried three different directories for a few photos, trying directly in apache2, then htdocs, then the images folder
What am I not seeing?
You will have to decide what your want as the domain for your site:
www.greenace92.ddns.net is not setup for your web site
greenace92.ddns.net is the domain setup for your web site.
You either have to
configure no-ip.com to point to the domain www.greenace92.ddns.net
(or)
change your apache ServerName directive to
ServerName "greenace92.ddns.net"
and change the image URLs in your HTML pages from something like
http://www.greenace92.ddns.net/htdocs/images/normalbus-icon-on.png
to
http://greenace92.ddns.net/images/normalbus-icon-on.png
Note: With your current configuration, the 2nd URL mentioned above should already work (It worked when I tested!).

AWS page just showing Apache Start page and not html file

I'm running an apache server on an Amazon EC2 basic linux instance, and I'm trying to get it to just display a simple test html file that I created. The file is in /home/ec2-user/public_html (just for test purposes). I've changed the DocumentRoot and Directory to point to this directory, but the public dns address is still just showing the default Apache start page. What else do I need to do/change to get this to actually display online?
Edit: I've also uncommented the VirtualHost *:80 line, changed the DocumentRoot and ServerName within the VirtualHost tags.
It turns out I had forgotten to change some permissions on the test.html file itself and that was causing a holdup.
check running instance's security group HTTP rule. ADD rule if not added:
Select HTTP from the Type list, and leave the source as Anywhere (0.0.0.0/0).